Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Having trouble Windows command line SORT via SHELL
#9
(08-24-2023, 08:32 PM)Ed Davis Wrote: Bad news here:  It works fine for me Sad

Code: (Select All)
$console:only
sort$ = "sort " + "input.txt" + " >> " + "output.txt"
shell sort$
system

Something to try - probably won't make a difference, but change "sort " to "sort.exe ".  Both work the same here.

Thanks to the tip from @SMcNeill, now that I can hold the output screen and read the message, SORT is saying "Input file specified two times." ... which is not the case!

At command line level, the only way to get that error message is to omit the redirect operator. However my command string includes the redirect operator so this is just nuts.
Reply


Messages In This Thread
RE: Having trouble Windows command line SORT via SHELL - by GTC - 08-25-2023, 07:45 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  how to sort negative and positive values ? Jack 16 669 02-23-2026, 02:18 AM
Last Post: Pete
  code locks up when SHELL paulel 4 290 02-15-2026, 08:04 PM
Last Post: madscijr
  trouble filling in a closed vector shape madscijr 31 2,536 11-11-2025, 03:41 PM
Last Post: bplus
  Command$(count%) - I can't get a value when using the optional argument "(count%)" Unatic 3 530 08-22-2025, 11:58 AM
Last Post: Unatic
  keyword to get the EXE name and the EXE path instead of parsing Command$(0) ? madscijr 8 1,159 07-22-2025, 08:35 PM
Last Post: hsiangch_ong

Forum Jump:


Users browsing this thread: 1 Guest(s)