Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Having trouble Windows command line SORT via SHELL
#7
(08-24-2023, 02:42 PM)GTC Wrote: Here's an example of how I'm calling it:

Sort_Command$ = "SORT " + "x.x" + " >> " + "y.y"
SHELL Sort_Command$

If I type that sort command on the command line I get y.y as a sorted version of x.x ... which is desired.

However when executed via SHELL a message flashes up in the output window (too fast to read before a blank window replaces it), and no sort occurs.

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.
Reply


Messages In This Thread
RE: Having trouble Windows command line SORT via SHELL - by Ed Davis - 08-24-2023, 08:32 PM



Users browsing this thread: 3 Guest(s)