May 10, 2005 #1 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.
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.
May 10, 2005 1 #2 bcastner IS-IT--Management Aug 13, 2002 29,271 US 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 Upvote 0 Downvote
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