Shortcut to scheduled task wont work

  • Thread starter Thread starter Jolly Polly
  • Start date Start date
J

Jolly Polly

I'm trying to get a program to 'run as administrator' via a scheduled
task and a shorcut on my desktop.

I've created the scheduled task, and this runs OK from the Task Scheduler.

Now I want a shortcut on my desktop to run the task, so I've created a
shortcut with the target as 'C:\Windows\System32\schtasks.exe /run /tn
“TASKNAMEhere”'
but I get this error:
ERROR: The system cannot find the file specified.

any ideas how I can resolve this problem please?
 
Jolly Polly said:
I'm trying to get a program to 'run as administrator' via a scheduled
task and a shorcut on my desktop.

I've created the scheduled task, and this runs OK from the Task Scheduler.

Now I want a shortcut on my desktop to run the task, so I've created a
shortcut with the target as 'C:\Windows\System32\schtasks.exe /run /tn
“TASKNAMEhere”'
but I get this error:
ERROR: The system cannot find the file specified.

any ideas how I can resolve this problem please?



For the task "name" you have to give the full path to the task ie including
task scheduler folders. You can get this with the help of

schtasks /query

Example ....

C:\Windows\System32\schtasks.exe /run /tn "\MyTaskSchedulerFolder\Task1"
 
Back
Top