PC Review


Reply
Thread Tools Rate Thread

how could i know whether a variable has been defined in command line?

 
 
thinktwice
Guest
Posts: n/a
 
      30th Apr 2008
//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
 
 
 
 
Pegasus \(MVP\)
Guest
Posts: n/a
 
      30th Apr 2008

"thinktwice" <(E-Mail Removed)> wrote in message
news:eb8dc0df-d296-40db-9274-(E-Mail Removed)...
> //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%


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Possible to pass a variable to Excel from command line/short cut? Jon Microsoft Excel Programming 2 16th Apr 2008 10:30 PM
Problem with environment variable expansion on command line (possible bug) David Levine Microsoft Dot NET Framework 1 25th Oct 2006 09:41 AM
Outlook needs a command-line switch to open to a defined view =?Utf-8?B?T3V0bG9vayBVc2VyIGluIEthYnVs?= Microsoft Outlook Discussion 0 12th Jun 2006 10:54 AM
Can I pass a variable via command line? AbraAbraCadabra Microsoft Access 1 9th May 2006 05:23 PM
publically defined command bar variable problem =?Utf-8?B?Sm9l?= Microsoft Excel Programming 1 5th Mar 2004 02:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:53 AM.