How to Fix Scheduled Tasks That Include Files With Spaces

1. Add Quote Marks to the File Paths

2. Delete Spaces From File Titles

3. Add Backslash and Quote Marks to File Paths in the Command Prompt

Users who utilize the Schtasks.exe Command Prompt utility to schedule tasks need to include additional backslash () and quote (“) marks around the file path with spaces (excluding arguments or switches) within the command. For example, a file path with arguments in the schtasks /create command would look something like this: “\”c:\foldername with spaces\file.bat\” arguments” Instead of this: “c:\foldername with spaces\file.bat arguments” In the example above, the first file path is enclosed within  “\ and \” character combinations. However, arguments is left outside the character combinations; but it is still enclosed within the quote marks. With those character combinations included around the path, the task will then run at the time scheduled within the command. A full command might look something like the one in the snapshot directly below.

So, users can add quotation marks to the file paths in the Edit Action window, remove spaces from file paths, or add character combinations around file paths that include spaces in Schtasks commands. Then the scheduled tasks should work. RELATED ARTICLES TO CHECK OUT: 

Full Fix: Windows Scheduled Tasks not running on Windows 10, 8.1, 7 Task Scheduler won’t wake up computer: Here’s what to do Task Scheduler not running? Here’s how to fix it

SPONSORED Name * Email * Commenting as . Not you? Save information for future comments
Comment

Δ