I have an issue in batch programming. I fetch the strings generated by consoles, then the string contains double quotes and I will save that to a variable, like,
"/path/compile" -o source.cpp
And now my problem is, how can I remove this 2 double quotes? I'm not sure how to remove that quotes in the middle of the string.
Please advise
set a="hello" world
set b=%a:"=%
correct syntax:
set "tempvar="/path/compile" -o source.cpp"
echo %tempvar%
set "tempvar=%tempvar:"=%"
echo %tempvar%
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With