Removing double quotes from variables in batch file creates problems with CMD environment

前端 未结 11 588
春和景丽
春和景丽 2020-12-04 11:25

Can anybody help with effective and safe way of removing quotes from batch variables?

I have written a batch file which successfully imports a list of parameters %1,

11条回答
  •  醉酒成梦
    2020-12-04 12:04

    This sounds like a simple bug where you are using %~ somewhere where you shouldn't be. The use if %~ doesn't fundamentally change the way batch files work, it just removes quotes from the string in that single situation.

提交回复
热议问题