|
| | |||||||
| Windows XP Discuss the Microsoft Windows XP Operating System |
| | LinkBack | Thread Tools |
| |||
| 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. |
| |||
| Re: how could i know whether a variable has been defined in command line? "thinktwice" <memorialday******.com> wrote in message news:eb8dc0df-d296-40db-9274-4fb5bdb44a28@f24g2000prh.googlegroups.com... > //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. if defined variable_a echo the value of variable_a is %variable_a% |
| Bookmarks |
| Thread Tools | |
| |
| | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| running a command stored in a script variable | wylbur37 | Linux | 2 | 03-23-2008 11:10 AM |
| Reboot necessary after "Regsvr32" command ? Asking from command line if DLL already registered? | Kevin Yu | Windows XP | 0 | 11-16-2007 01:40 AM |
| Command prompt random variable | jimshoe2112 | Windows XP | 1 | 09-20-2007 11:20 PM |
| Specify environmental variable when starting command prompt? | Don Culp | Windows XP | 1 | 07-19-2007 04:40 AM |
| Help: Not seeing variable defined in OBJECT-loaded page | muggler | Internet Explorer | 1 | 05-06-2007 11:16 AM |
| New To Technology Questions? | Do You Need Help with Your Computer or Device? | Do You Need Help with this site? |