Categories: Uncategorized

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.

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.

" } }] }

webmaster

Share
Published by
webmaster

Recent Posts

Does ASUS Prime B550M a support Ryzen 5 5600X?

AMD Ryzen 5 5600X 6 Core 12 Thread CPU, 3.7GHz Base Clock, 4.6GHz Boost. The…

1 year ago

How do you fix a scratched Wii disc?

1:303:09FIX your SCRATCHED Disks! – GCN, Wii, PS1, etc. – YouTubeYouTube

1 year ago

What CPU should I get for B550?

Best overall AMD Ryzen 7 5800X The AMD Ryzen 7 5800X may be considered a…

1 year ago

How do I know if my IMEI is unlocked?

Alternatively, you could try dialing “*#06#” on your phone to summon your phone’s IMEI number.…

2 years ago

Is a MAC address fixed?

The MAC address generally remains fixed and follows the network device, but the IP address…

2 years ago

Can you just put a Verizon SIM card in an unlocked phone?

An unlocked phone means that the operation of the device is not contractually bound to…

2 years ago