Set a path variable with spaces in the path in a Windows .cmd file or batch file

前端 未结 9 779
孤独总比滥情好
孤独总比滥情好 2020-12-02 05:43

I\'m new to script writing and can\'t get this one to work. I could if I moved the files to a path without a space in it, but I\'d like it to work with the space if it coul

9条回答
  •  爱一瞬间的悲伤
    2020-12-02 06:33

    also just try adding double slashes like this works for me only

    set dir="C:\\1. Some Folder\\Some Other Folder\\Just Because"

    @echo on MKDIR %dir%

    OMG after posting they removed the second \ in my post so if you open my comment and it shows three you should read them as two......

提交回复
热议问题