1.

Solve : Need help with DOS sort command!?

Answer»

Hello, i'm trying to do what i THOUGHT would be a simple sort in a ".bat" file on Windows7 ie:

<<<<< ok i just ran this from the command line and it worked, but how to GET this working in a ".bat" file? please>>>>>.

>srt.bat:

sort in.txt /o out.txt

and because this command routine never stops running on my actual data file, i created a simple input file ie:

>in.txt
ef
bc
a
ab

and this runs FOREVER too, so is there something obviously wrong with this command setup i'm using here please?

and when i run on my regular data file i will want to sort on the whole record which is under 4096 characters.

Thanks very much for any assistance on this!
BobKGreetings BobK,
I tested the example you provided and it worked as expected for me using WIN 7. You didn't perchance name your file sort.bat instead of srt.bat did you?

Best wishes!

Yes!!! that's exactly what i did, i called it "sort.bat" not "srt.bat" and when i renamed it to "srt.bat" it works lightning fast! thanks very much Ocalabob! have a great week!



Discussion

No Comment Found