Quantcast

Have a Question?

If you have any question you can ask below or enter what you are looking for!

How do you pass an argument to a Windows scheduled task with spaces in it?

Note the use of ‘ in the path of a file to be run. I believe this behavior was added to prevent spaces in the file path to the exe causing problems….Here is an example:

  1. Program/script: powershell.exe.
  2. Add arguments: -command "& ‘C:\HSD – Copy\logoffstudents. ps1’ " -NonInteractive.
  3. Start in: Blank.

techfaq.online