JSI Tip 8633. A simple way for your script to remove a parameter's encapsulating double-quotes.


To remove encapsulating double-quotes from a parameter, I have used:

set param=%1
set param=%param:"=%

A simple way is to make use of batch parameter parsing:

set param=%~1



Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish