Shortcut to scheduled task wont work


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?
 
Ad

Advertisements

Ad

Advertisements

J

Jon

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"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top