Re: How can i escape quotation for DOS command parameter??



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

.



Relevant Pages

  • How can i escape quotation for DOS command parameter??
    ... A string have to be given to a batch file like this... ... How can i escape quotation for DOS command parameter?? ...
    (comp.programming)
  • Re: Toward Terser Java
    ... {addToken(new StringLiteralToken(quotation));} ... public class QuotationAccumulator extends BaseAccumulator { ... public class CommentAccumulator extends BaseAccumulator { ... String quotation = accumulatedQuotation.toFinalString; ...
    (comp.lang.java.programmer)
  • Re: Split function or Join function: delimiter problem
    ... quotation marks(a line from a text file that's a "|" delimited file as ... > so that VB 6.0 won't blow up every time it hits the string? ... when the item to be replaced is a quotation mark. ... from an external database has to be reformatted before importing to one ...
    (microsoft.public.vb.general.discussion)
  • RE: Pass data to website
    ... the string after the '?' ... "Kathy" wrote: ... If I add a quotation at the beginning of the url, ... Dim stAppName As String ...
    (microsoft.public.access.modulesdaovba)
  • Re: Which is this sentence
    ... But in order to achieve this translation ... define the "quotation" of S to be the result of ... Now define the "fixed point term" for any string S to be ... They are just operations on meaningless strings that produce other ...
    (sci.logic)