Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > Shortcut to scheduled task wont work

Reply
Thread Tools Display Modes

Shortcut to scheduled task wont work

 
 
Jolly Polly
Guest
Posts: n/a

 
      08-08-2009
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?
 
Reply With Quote
 
 
 
 
Ramesh Srinivasan, MS-MVP
Guest
Posts: n/a

 
      08-08-2009
Try:

SCHTASKS.EXE /RUN /TN "task name"

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows Desktop Experience]
------------------------------------------------------------------------------
Supporting Windows® 7, Vista & XP http://www.winhelponline.com
------------------------------------------------------------------------------


"Jolly Polly" <> wrote in message
news:%...
> 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?



 
Reply With Quote
 
Jon
Guest
Posts: n/a

 
      08-08-2009

"Jolly Polly" <> wrote in message
news:%...
> 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"

--
Jon


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Service & Scheduled Task Passwords Not Being Retained S Sainsbury Windows Server 1 08-24-2007 10:06 AM
Scheduled task not running Ben Amada Windows Server 2 08-22-2007 07:09 PM
unable to run a scheduled task Rosana Almada Windows Server 9 11-09-2006 11:17 AM
Re: Unable to edit properties of scheduled task Jerold Schulman Windows Server 1 11-19-2004 02:10 PM
Need a real answer...scheduled tasks Troy Windows Server 9 10-26-2004 03:50 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59