Batch string replace

后端 未结 3 1440
伪装坚强ぢ
伪装坚强ぢ 2020-12-21 19:06

I have a variable like this

\"Folder With Spaces/filename.ext\"

When I pass it to my program via PHP\'s system command, arguments are separ

3条回答
  •  温柔的废话
    2020-12-21 19:13

    Just enclose the parameter that has spaces with quotes.

    system("batch.bat \"Folder With Spaces/filename.ext\"");
    

提交回复
热议问题