home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / msdos / misc / 4938 < prev    next >
Encoding:
Internet Message Format  |  1992-08-29  |  894 b 

  1. Path: sparky!uunet!portal!cup.portal.com!compata
  2. From: compata@cup.portal.com (David H Close)
  3. Newsgroups: comp.os.msdos.misc
  4. Subject: Batch command file parameter question
  5. Message-ID: <64900@cup.portal.com>
  6. Date: Sat, 29 Aug 92 07:56:43 PDT
  7. Organization: The Portal System (TM)
  8. Distribution: world
  9. Lines: 22
  10.  
  11. The following simple MS-DOS batch file,
  12.  
  13.     > type q.bat
  14.     @echo off
  15.     echo %1
  16.     echo %2
  17.     echo %3
  18.  
  19. yields a result which I find peculiar.  Observe this behavior:
  20.  
  21.     > q "one two" three
  22.     "one
  23.     two"
  24.     three
  25.  
  26. Is there no way to make this foolish operating system recognize a quoted
  27. string and treat it as a single parameter?  Alternatively, is there any
  28. justification for this behavior (besides incompetence)?
  29. (Email replies preferred.)
  30.  
  31.  Dave Close - Compata - Stockton, California - +1 209 467 8255 ("209-install")
  32.   dave@compata.attmail.com | compata@mcimail.com | dhclose@alumni.caltech.edu
  33.