home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!portal!cup.portal.com!compata
- From: compata@cup.portal.com (David H Close)
- Newsgroups: comp.os.msdos.misc
- Subject: Batch command file parameter question
- Message-ID: <64900@cup.portal.com>
- Date: Sat, 29 Aug 92 07:56:43 PDT
- Organization: The Portal System (TM)
- Distribution: world
- Lines: 22
-
- The following simple MS-DOS batch file,
-
- > type q.bat
- @echo off
- echo %1
- echo %2
- echo %3
-
- yields a result which I find peculiar. Observe this behavior:
-
- > q "one two" three
- "one
- two"
- three
-
- Is there no way to make this foolish operating system recognize a quoted
- string and treat it as a single parameter? Alternatively, is there any
- justification for this behavior (besides incompetence)?
- (Email replies preferred.)
-
- Dave Close - Compata - Stockton, California - +1 209 467 8255 ("209-install")
- dave@compata.attmail.com | compata@mcimail.com | dhclose@alumni.caltech.edu
-