What's the way to sort a list of files, which is processed by a batch-file via sendTo-menu, eg:
myDir
file_1.txt
file_3.txt
hello.world
foo.bar
If I mark these files and call a batch file via sendTo-link to process those files, the order of the files seems to be random:
FOR %%A IN (%*) DO (set command=!command! %%A)
ECHO %command%
In some cases this shoud make no difference, but for merging for example, it does.
Something like using dir"*.sql ^| sort
does not seem to work thus selected filenames are not considered.