simple windows batch file question

June 18th, 2005 - 08:57 am ET by pault.ng | Report spam
Hi,

How do I assign the program output to a variable in a batch file?

I guessed it would be something like:

set MY_VAR = `type filename`
echo %MY_VAR%

I want to assign the one line that is in the file to be assigned to
MY_VAR.

Thanks,

Paul.
email Follow the discussionReplies 3 repliesReplies Make a reply

Replies

#1 pault.ng
June 20th, 2005 - 06:10 am ET | Report spam
Thanks for the info - with it I have now got my script working :-)

Regards,

Paul.

Similar topics