如何在任务计划程序中引入带空格的路径?

时间:2019-05-24 07:59:25

标签: taskscheduler

我正在尝试创建一个计划任务,每天执行bat文件。我有bat文件的路径中有空格(ej:C:\ Program Files(x86)\文件夹名称,其中有更多的spaces \ file.bat)。因此,问题在于任务计划程序无法处理路径中的空格。

我该如何使任务计划程序起作用?

我已经尝试过:

"C:\Program Files (x86)\folder name with more spaces\file.bat"

C:\'Program Files (x86)'\'folder name with more spaces'\file.bat

C:\\Program Files (x86)\\folder name with more spaces\\file.bat

0 个答案:

没有答案