RE: Test Whether Variable Exists

2001-09-07 Thread RZorz
]]Sent: Friday, September 07, 2001 6:35 AMTo: NT System Admin IssuesSubject: RE: Test Whether Variable Exists Stu - can you get this guy unsubbed before he drives us all mad? A blank response to every posting is getting a little annoying ;-) Cheers Jack -Original

RE: Test Whether Variable Exists

2001-09-06 Thread Jeff Wilcox
Use an If statement. If variable = string then do a command. -Original Message- From: Simon Butler [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 06, 2001 12:22 PM To: NT System Admin Issues Subject: Test Whether Variable Exists Hi, This should be an easy one but I cannot find

RE: Test Whether Variable Exists

2001-09-06 Thread Torres, Edgar (GEP)
if defined MYVAR echo It exists! __ Edgar Torres -Original Message- From: Simon Butler [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 06, 2001 12:22 PM To: NT System Admin Issues Subject: Test Whether Variable Exists Hi, This should be an easy one but I cannot find

RE: Test Whether Variable Exists

2001-09-06 Thread Correa, Andre
, September 06, 2001 12:26 PM To: NT System Admin Issues Subject:RE: Test Whether Variable Exists if defined MYVAR echo It exists! __ Edgar Torres -Original Message- From: Simon Butler [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 06, 2001 12:22 PM To: NT System

RE: Test Whether Variable Exists

2001-09-06 Thread Torres, Edgar (GEP)
:02 PM To: NT System Admin Issues Subject: RE: Test Whether Variable Exists I believe that IF DEFINED only works on NT boxes, not 95/98. If it is an all NT environment, then it is OK. Otherwise, use syntax as follows: If not {%somevar%}=={} echo Variable exists The { sign can be replaced

RE: Test Whether Variable Exists

2001-09-06 Thread Andrew Baker
: Thursday, September 06, 2001 12:26 PM To: NT System Admin Issues Subject:RE: Test Whether Variable Exists if defined MYVAR echo It exists! __ Edgar Torres -Original Message- From: Simon Butler [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 06, 2001 12:22 PM To: NT

RE: Test Whether Variable Exists

2001-09-06 Thread Andrew S. Baker
://www.shortkeys.com/ ~~~ -Original Message- From: Correa, Andre [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 06, 2001 8:17 PM To: NT System Admin Issues Subject: RE: Test Whether Variable Exists How do you set an environment variable with a space?? I

RE: Test Whether Variable Exists

2001-09-06 Thread Colin Leeson
Try this Date /t test.txt ...and notice the space after the date Col -Original Message- From: Andrew S. Baker [mailto:[EMAIL PROTECTED]] Sent: Friday, 7 September 2001 11:44 To: NT System Admin Issues Subject: RE: Test Whether Variable Exists Type either of the following