View Single Post
  #1 (permalink)  
Old 04-29-2008, 08:40 PM
thinktwice
Newsgroup Contributor
 
Posts: n/a
how could i know whether a variable has been defined in command line?

//file 1.bat
@call file3.bat

//file 2.bat
@call file1.bat
@call file3.bat

//file3.bat
if variable_a has been defined (goto eof ) else (define variable_a)

i don't want to run the same batch file more than once.
Reply With Quote

 
Old 04-29-2008, 08:40 PM