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. When I move the vbs file to a folder location without spaces, the Task runs successfully. When I move the vbs file to the folder location with spaces, the Task does not run. How can I get Task Scheduler to recognise the folder address with spaces?
File Name: Testing.vbs
Folder Location with Spaces: S:\One_Drive\Tasks\Daily
Folder Location without Spaces: S:\One_Drive\My Folder\Live\Scheduled Tasks\Daily
As quite simply suggested by @BaliC I just had to use speech marks:
"S:\One_Drive\My Folder\Live\Scheduled Tasks\Daily\Testing.vbs"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.