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?