Re: How can i escape quotation for DOS command parameter??
- From: Coos Haak <chforth@xxxxxxxxx>
- Date: Mon, 28 Apr 2008 20:56:45 +0200
Op Sun, 27 Apr 2008 20:16:59 -0700 (PDT) schreef krondor@xxxxxxxxxxxxx:
i'm in trouble with escaping " in dos command.
A string have to be given to a batch file like this...
C:> myBatchFile.bat "your blue eyes"
but in many case, the string can have quotation
(actually, a regular expression should be given... sigh.)
C:> myBatchFile.bat "your "blue" eyes"
I want to send [your "blue" eyes], not [your ]
How can i escape quotation for DOS command parameter??
By parsing the command line yourself ;-)
The only escape DOS knows of are percent signs:
echo %PATH% %PROMPT%
--
Coos
.
- References:
- How can i escape quotation for DOS command parameter??
- From: krondor
- How can i escape quotation for DOS command parameter??
- Prev by Date: A site for all your programming language needs
- Next by Date: Re: A site for all your programming language needs
- Previous by thread: How can i escape quotation for DOS command parameter??
- Next by thread: INTERNATIONAL WORKSHOP ON OPTICAL SUPERCOMPUTING (OSC'08): Deadline extension
- Index(es):
Relevant Pages
|