How to mention C:\Program Files in batchfile

后端 未结 7 2111
迷失自我
迷失自我 2021-02-01 17:03

I need to invoke an exe file in C:\\Program Files directory from a batch file.How can we mention the directory name \"Program Files\" in batch file.I am getting error like C:\\P

7条回答
  •  失恋的感觉
    2021-02-01 17:34

    I had a similar issue as you, although I was trying to use start to open Chrome and using the file path. I used only start chrome.exe and it opened just fine. You may want to try to do the same with exe file. Using the file path may be unnecessary.

    Here are some examples (using the file name you gave in a comment on another answer):

    • Instead of C:\Program^ Files\temp.exe you can try temp.exe.

    • Instead of start C:\Program^ Files\temp.exe you can try start temp.exe

提交回复
热议问题