IF Batch Command No Longer Works in 2000?

R

rmercer

Has anyone experience this..
A dos batch command that I've been using for years no
longer works in Win2k.
if %1 == " " GOTO SOMELABEL
When you run this batch you get an error..
== was unexpected at this time.
Yet I've been using this batch for years...
Anyone have a clue why this would no longer work??
Thanks
 
P

Phil Robyn [MVP]

Has anyone experience this..
A dos batch command that I've been using for years no
longer works in Win2k.
if %1 == " " GOTO SOMELABEL
When you run this batch you get an error..
== was unexpected at this time.
Yet I've been using this batch for years...
Anyone have a clue why this would no longer work??
Thanks

Try

if "%1" == "" ....
 
R

rmercer

Thanks.. that did it.
-----Original Message-----


Try

if "%1" == "" ....


--
Phil Robyn
Univ. of California, Berkeley

u n z i p m y a d d r e s s t o s e n d e - m a i l
.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top