Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!usc!apple!agate!pasteur!cad.Berkeley.EDU!brand From: brand@cad.Berkeley.EDU (Graham Brand) Newsgroups: comp.os.msdos.misc Subject: Getting rid of "syntax error" from .bat files - how to? Message-ID: <9467@pasteur.Berkeley.EDU> Date: 5 Dec 90 18:02:40 GMT Sender: news@pasteur.Berkeley.EDU Reply-To: brand@cad.Berkeley.EDU.UUCP (Graham Brand) Organization: University of California, Berkeley Lines: 12 I have written a batch file which accepts parameters from the command line using the: if %1==param1 syntax. It works fine except that if I don't pass any parameters, I get the above syntax error message. Is there any way to suppress this? 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. Cheers, -Graham