Weird SORT problem (CMD)

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