simple windows batch file question
- From: pault.ng@xxxxxxxxxxxxx
- Date: 18 Jun 2005 05:57:50 -0700
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-Ups:
- Re: simple windows batch file question
- From: pault . ng
- Re: simple windows batch file question
- From: billious
- Re: simple windows batch file question
- From: William Allen
- Re: simple windows batch file question
- Prev by Date: Re: command line backup
- Next by Date: Re: simple windows batch file question
- Previous by thread: command line backup
- Next by thread: Re: simple windows batch file question
- Index(es):
Relevant Pages
|