home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.msdos.misc
- Path: sparky!uunet!mcsun!news.funet.fi!uwasa.fi!ts
- From: ts@uwasa.fi (Timo Salmi)
- Subject: Re: Batch command file parameter question
- Message-ID: <1992Aug29.172912.3321@uwasa.fi>
- Organization: University of Vaasa, Finland
- References: <64900@cup.portal.com>
- Date: Sat, 29 Aug 1992 17:29:12 GMT
- Lines: 23
-
- In article <64900@cup.portal.com> compata@cup.portal.com (David H Close) writes:
- > > 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
-
- Not really, but you can easily make combine parameters into
- environment variables:
- @echo off
- set tmp=%1 %2
- echo %tmp%
-
- To make if a but more general you can utilize the shift command.
- But the quotes are not on.
-
- ..................................................................
- Prof. Timo Salmi
- Moderating at garbo.uwasa.fi anonymous FTP archives 128.214.87.1
- Faculty of Accounting & Industrial Management; University of Vaasa
- Internet: ts@uwasa.fi Bitnet: salmi@finfun ; SF-65101, Finland
-
-