开发者

Escape comma in batch file to execute a graphicsmagick command

开发者 https://www.devze.com 2023-02-26 20:33 出处:网络
I\'ve got the line gm -mogrify -level 30%,10,100% Edit.jpg in a .bat file t开发者_开发知识库hat executes perfectly when I type it manually. However, it ends the line on the first comma of the argument

I've got the line gm -mogrify -level 30%,10,100% Edit.jpg in a .bat file t开发者_开发知识库hat executes perfectly when I type it manually. However, it ends the line on the first comma of the argument when executed as a batch script.

How should I rewrite this to make it work?

Thank you.


% is a special character in batch script. Use %% instead.

0

精彩评论

暂无评论...
验证码 换一张
取 消