Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Batch file help

$
0
0
Hello, (not sure if we have a batch sub forum)

I want to run my batch file so that it pipes standard-out and standard-error info to files but I would also like to see the standard-out ECHO-ed to the console, (that way the user knows when the test program is done)

Can I put a third flag for >con ?

Here is my batch file:

rem Working directory.
c:
cd \
cd \Program Files\Philips\CIRS\DiskDiag


rem set TAC number as file name.
set /p testout= Enter TAC# for use as the file name?
set /p flash= Enter the letter of the flash drive (ie g, e)


rem the test will want "Y" for input but the user will not be able to see it.
echo press "y" / "Y" wait a bit the press "y" / "Y" again


rem command line.
c:\windows\system32\cscript.exe rundisktestf.vbs /v /r:3 >"%flash%":\"%testout%".txt 2> "%testout%"errors.txt



Thanks

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>