Author Topic: Task Scheduler fails when Windows username contains spaces  (Read 3363 times)

Offline an3s

  • Newbie
  • *
  • Posts: 1
    • View Profile
Task Scheduler fails when Windows username contains spaces
« on: April 06, 2017, 01:53:31 PM »
Hi there, the scheduled task seems to fail because my windows username contains a space:

F:\Users\John Doe\Downloads\scoped_dir_16148_1317\PatchMyPC.exe /silent

This should have quotes, like this:
"F:\Users\John Doe\Downloads\scoped_dir_16148_1317\PatchMyPC.exe" /silent

Somewhere the PatchMyPC program schedules this task wrong.  :)

Offline Admin - Eric

  • Administrator
  • Newbie
  • *****
  • Posts: 15
    • View Profile
Re: Task Scheduler fails when Windows username contains spaces
« Reply #1 on: August 09, 2017, 11:22:35 PM »
Hi,
What OS are you using?
The task scheduler will still continue to run when the path has spaces in it.
I do not recall when Microsoft changed this, but I can confirm, at least on my test machine, that this works OK with and without spaces in the path.