Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

environment variables in xp 1

Status
Not open for further replies.

tomk01

ISP
Oct 18, 2004
69
US
I need to create and use a variable in a batch file to rename a file. I don't know what command to use to set the variable.
 
SET

e.g.
To create and use a new variable:
set bcastner=test
echo %bcastner%
test

To use existing variables:
set bcastner=%windir%%
echo %bcastner%
C:\WINDOWS
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top