简体   繁体   English

Windows 任务计划程序参数与文件夹地址中的空格不起作用

[英]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.

相关问题 Windows 调度程序未执行任务 - Windows scheduler not executing task VBScript任务计划程序不起作用? - VBScript Task scheduler not working? 打开 excel 文件工作正常,但如果我通过 Windows 任务计划程序安排脚本,则无法正常工作 - Opening excel file working fine, but if I schedule the script through Windows Task Scheduler, it's not working Windows 任务计划程序不运行 VBScript - Windows Task Scheduler Doesn't Run VBScript Windows 任务计划程序中的 wscript.exe - wscript.exe in Windows Task Scheduler 任务计划程序正在运行,但未完成或无法正常工作VBscript - Task Scheduler running but not finishing or working properly VBscript Vbscript在cmd提示符下工作正常,但在任务计划程序中不工作 - Vbscript is working fine in cmd prompt but not working in task scheduler VBScript 不会从从 Windows 任务计划程序运行的 Powershell 脚本中运行 - VBScript will not run from Powershell script that runs from Windows Task Scheduler Windows任务计划程序设置为“如果已登录或未运行”,则不运行VBScript - Windows Task Scheduler not running VBScript when set to “Run if logged on or not” Windows Server 2003:任务计划程序未成功运行 VBS 文件作业 - Windows Server 2003: Task Scheduler is not running successfully VBS file jobs
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM