Re: Allow user access Scheduled Tasks
Sorry, a bit confused, can the instruction more details?step by step
My requirement user can trigger the server task schedule or server batch job
and the command inside the batch job must run from server not from user pc.
eg this command "proshut" if run this command from user pc, can not work,
only server recongnise this command.
"Pegasus (MVP)" wrote:
>
> "DD" <DD@discussions.microsoft.com> wrote in message
> news:EEDF702B-1E2D-4FBF-83E2-4F74123EA21C@microsoft.com...
> >
> >
> > I have some schedule job on the server and need to let user to run the
> > task,because some of the third part program only can run from th server.
> > so
> > no choice, i have to let user access the scheduled task to trigger the
> > job.
> >
> > Can it be done ?
> >
>
> Place the task inside a batch file like so:
>
> @echo off
> if not exist d:\Shares\SomeUser\Tasks\go.txt goto :eof
> del d:\Shares\SomeUser\Tasks\go.txt
> "c:\Program Files\Some App\launch.exe"
>
> Now do this:
> - Schedule this task to run once every five minutes.
> - Give the user a shortcut that generates the file
> \\Server\SomeUser\Tasks\go.txt.
>
> When the user double-clicks this shortcut, the semaphore
> file "go.txt" will be created, which will cause the scheduled
> task to run within five minutes.
>
>
>