Batch File Variable

Equus computer systems / Nobilis
February 17, 2009 at 10:26:12
Specs: Microsoft Windows XP Professional, 1.828 GHz / 2037 MB
I need to set a variable in a batch file based on the text contained in a separate file.

The value of my variable (name) is actually the text that is contained in a separate file (name.txt). The text in name.txt changes constantly, so the value cannot simply be coded into the batch.

How can I pull the two together?

Any thoughts would be much appreciated!


See More: Batch File Variable

Report •


#1
February 17, 2009 at 14:06:51
How many lines in name.txt?

"The text in name.txt changes constantly"
Is it likely that the batch script will be run whilst the file is being updated by another program?


Report •
Related Solutions


Ask Question