Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!uunet!munnari.oz.au!ariel!ucsvc.ucs.unimelb.edu.au!u3369429 From: U3369429@ucsvc.ucs.unimelb.edu.au (Michael Bednarek) Newsgroups: comp.os.msdos.misc Subject: Re: Getting rid of "syntax error" from .bat files - how to? Message-ID: <1370@ucsvc.ucs.unimelb.edu.au> Date: 10 Dec 90 00:27:42 GMT References: <9467@pasteur.Berkeley.EDU> <1990Dec8.150147.1225@druid.uucp> Organization: I.A.E.S.R., Melbourne University Lines: 21 In article <1990Dec8.150147.1225@druid.uucp>, darcy@druid.uucp (D'Arcy J.M. Cain) writes: > In article <9467@pasteur.Berkeley.EDU> Graham Brand writes: >>In addition, is there any way of passing a string, the first character >>of which is a dash (-), as in -f? It doesn't seem to work with the >>above test. > Not sure what you mean. The following works for me: > if %1==-f echo -f BUT, why does it not work with "="? Example: File TEST.BAT: Echo %1 %2 Command line: TEST e=mc2 Result: e mc2 Who is eating the Equal Signs? And what can be done about it? -- Michael Bednarek, Big River Ski Lodge Caravan Park, Seelands Grafton Base Hospital, Grafton 2460, AUS, Phone: +61 66 44 9324 // u3369429@{ucsvc.dn.mu.oz.au | murdu.oz.au} | mb@munnari.oz.au \X/ "POST NO BILLS." PSI%23343000301::U3369429