• Welcome to Windows XP Forums. Still running XP? Register for free to ask a question, reply to threads and see fewer ads.Register now

Weird SORT problem (CMD)

Joined
Jul 11, 2017
Messages
2
I have a weird problem with SORT

When I execute the sort command

sort.exe "Infile.txt" /O "Outfile.txt"
or
sort.exe "Infile.txt" >"Outfile.txt"

I get the error "Not enough main memory to complete the sort"

The target location of Outfile.txt doesn't matter
The size of Infile.txt doesn't matter

However when I execute the sort command
sort.exe "Infile.txt"
the sorted result is shown on screen and is without any error

So there seems to be no memory problem!

But what's going on ?

PS: I tried the "/M nnn" option but this doesn't change anything
 
Back
Top