Answer the question
In order to leave comments, you need to log in
Windows 10: how to add task to task sheduler if path contains spaces?
In Windows 10, I'm trying to add a task to task shedule.r The task is simple - to run a script from a specific folder at a certain time.
The folder path may contain spaces.
I know about escaping and brackets, but this is Windows 10.
The funny thing is that if you add escaping in the code, then when you execute a task, Win10 "caringly" asks: how to open THIS? (instead of actually executing the wbs script, which is written in the task)
I googled the following ways to solve the problem:
1. Reducing the path to the 8.3 format, did not google how to do it easier
2. Adding tasks to the scheduler not through the command line, but through WMI. See manual here . But the same question arises - how is it with spaces and escaping?
3. Add the script to the %temp% folder. Then the question is: will Windows not clean it up from there if the script should be executed in a couple of days / reboots?
There is no Windows 10 and there is nowhere to put it, who came across - unsubscribe, help.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question