Home
News
Reviews
Downloads
Tips & Tricks
Press Releases
High-Tech
Autos
Politics
Sports
RSS & JS
Facebook
Twitter
Follow us
Technology
>
Forums
>
Windows 2000
>
CMD Prompt Administration
Tags
simple windows batch
batch file question
simple windows
batch file
simple windows batch file question
June 18th, 2005 - 08:57 am ET by
pault.ng
|
Report spam
Create a new topic
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.
Follow the discussion
3 replies
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.
Read all the answers
Similar topics
Batch File Question
re: Ping Gene: batch file question
Make your own search :
GNT - A Generation of New Technology
May 22nd, 2013 - 10:38 AM ET
Join now
Login
Replies