Collecting stdout into DOS variable
Posted on 2006-07-01
I am new to DOS programming - I have written a batch script to execute a program and write stdout to a file.
I am not gettign the syntax to collect it into a variable instead of a file.Is there a way?
pardon my ignorance.
I am using the following syntax now:
REM time the job by writing timestamps to a file
echo Begin at: 1>%STDOUT% 2>%STDERR%
time /T 1>>%STDOUT% 2>>%STDERR%
date /T 1>>%STDOUT% 2>>%STDERR%
REM run the j
IEClient.exe %* 1>>%STDOUT% 2>>%STDERR%
Can stdout be collected into a variable directly.
or do i have to repoen the output file into a variable?