J
Jeff F
I've numerous bat files of the following (much simplified) ilk:
test.bat
========
set log=%1
dir > %log%
I need to use the same bat files to redirect to a file by executing a
command:
test somefile.log
I'd also like to be able to execute the bat file _without_ any redirection
occurring.
I've tried:
test &1
Any ideas?
Thanks, Jeff
test.bat
========
set log=%1
dir > %log%
I need to use the same bat files to redirect to a file by executing a
command:
test somefile.log
I'd also like to be able to execute the bat file _without_ any redirection
occurring.
I've tried:
test &1
Any ideas?
Thanks, Jeff