[英]Windows Task Scheduler argument with spaces in folder address not working
I have a vbs file that I want to run from Task Scheduler, but the folder location that holds the vbs file has spaces in it.我有一个要从任务计划程序运行的 vbs 文件,但保存 vbs 文件的文件夹位置中有空格。 When I move the vbs file to a folder location without spaces, the Task runs successfully.
当我将 vbs 文件移动到没有空格的文件夹位置时,任务运行成功。 When I move the vbs file to the folder location with spaces, the Task does not run.
当我将 vbs 文件移动到带有空格的文件夹位置时,任务不会运行。 How can I get Task Scheduler to recognise the folder address with spaces?
如何让任务计划程序识别带有空格的文件夹地址?
File Name: Testing.vbs文件名:Testing.vbs
Folder Location with Spaces: S:\One_Drive\Tasks\Daily带空格的文件夹位置:S:\One_Drive\Tasks\Daily
Folder Location without Spaces: S:\One_Drive\My Folder\Live\Scheduled Tasks\Daily没有空格的文件夹位置:S:\One_Drive\My Folder\Live\Scheduled Tasks\Daily
As quite simply suggested by @BaliC I just had to use speech marks:正如@BaliC 所建议的那样,我只需要使用语音标记:
"S:\One_Drive\My Folder\Live\Scheduled Tasks\Daily\Testing.vbs" "S:\One_Drive\My Folder\Live\Scheduled Tasks\Daily\Testing.vbs"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.