Technology Questions

Go Back   Technology Questions > Software Questions > Operating System Questions > Windows XP

Windows XP Discuss the Microsoft Windows XP Operating System

Reply
 
LinkBack Thread Tools
  #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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 04-29-2008, 08:40 PM
  #2 (permalink)  
Old 04-29-2008, 10:40 PM
Pegasus \(MVP\)
Newsgroup Contributor
 
Posts: n/a
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%


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

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 On


Similar Threads
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?

All times are GMT -8. The time now is 01:41 PM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0