Misha Moroshko
Misha Moroshko

Reputation: 171459

How to remove double quotes from a variable in a batch file?

var may be double quoted:

    set var="Very long text" 

or without quotes:

    set var=Some_Text

I would like to get the unquoted text, i.e. Very long text in the first case and Some_Text in the second one.

How could I remove the double quotes, if exist ?

Upvotes: 4

Views: 6173

Answers (1)

Olathe
Olathe

Reputation: 1895

Have you tried this method?

See also: http://ss64.com/nt/syntax-esc.html

Upvotes: 4

Related Questions