home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / msdos / misc / 4942 < prev    next >
Encoding:
Text File  |  1992-08-29  |  1.1 KB  |  34 lines

  1. Newsgroups: comp.os.msdos.misc
  2. Path: sparky!uunet!mcsun!news.funet.fi!uwasa.fi!ts
  3. From: ts@uwasa.fi (Timo Salmi)
  4. Subject: Re: Batch command file parameter question
  5. Message-ID: <1992Aug29.172912.3321@uwasa.fi>
  6. Organization: University of Vaasa, Finland
  7. References: <64900@cup.portal.com>
  8. Date: Sat, 29 Aug 1992 17:29:12 GMT
  9. Lines: 23
  10.  
  11. In article <64900@cup.portal.com> compata@cup.portal.com (David H Close) writes:
  12. >    > q "one two" three
  13. >    "one
  14. >    two"
  15. >    three
  16. >Is there no way to make this foolish operating system recognize a quoted
  17. >string and treat it as a single parameter?  Alternatively, is there any
  18.  
  19. Not really, but you can easily make combine parameters into
  20. environment variables:
  21.  @echo off    
  22.  set tmp=%1 %2 
  23.  echo %tmp%   
  24.  
  25. To make if a but more general you can utilize the shift command. 
  26. But the quotes are not on.
  27.  
  28. ..................................................................
  29. Prof. Timo Salmi
  30. Moderating at garbo.uwasa.fi anonymous FTP archives 128.214.87.1
  31. Faculty of Accounting & Industrial Management; University of Vaasa
  32. Internet: ts@uwasa.fi Bitnet: salmi@finfun   ; SF-65101, Finland
  33.  
  34.