Weird SORT problem (CMD)

Discussion in 'Windows XP Help and Support' started by Darwin4ever, Jul 11, 2017.

  1. Darwin4ever


    Jul 11, 2017
    Likes Received:
    I have a weird problem with SORT

    When I execute the sort command

    sort.exe "Infile.txt" /O "Outfile.txt"
    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
    Darwin4ever, Jul 11, 2017
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.