Guest DD Posted July 9, 2007 Posted July 9, 2007 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 ?
Guest Pegasus \(MVP\) Posted July 9, 2007 Posted July 9, 2007 Re: Allow user access Scheduled Tasks "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.
Guest Lanwench [MVP - Exchange] Posted July 9, 2007 Posted July 9, 2007 Re: Allow user access Scheduled Tasks DD <DD@discussions.microsoft.com> wrote: > 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 ? If it's really a scheduled task, why does it require any user interaction at all?
Guest DD Posted July 11, 2007 Posted July 11, 2007 Re: Allow user access Scheduled Tasks Sorry, I would said that is a batch job and and already scheduled in the task but we do not have the fix timing to run the job, user must be able to run the job anytime when they finish they day end closing. The command only can run from the server not from user pc. How can i let user run the bactch from the server not from client pc ? "Lanwench [MVP - Exchange]" wrote: > DD <DD@discussions.microsoft.com> wrote: > > 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 ? > > If it's really a scheduled task, why does it require any user interaction at > all? > > >
Guest DD Posted July 11, 2007 Posted July 11, 2007 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. > > >
Guest Pegasus \(MVP\) Posted July 11, 2007 Posted July 11, 2007 Re: Allow user access Scheduled Tasks Which part of my detailed instructions is unclear? "DD" <DD@discussions.microsoft.com> wrote in message news:0C494700-1E42-4396-9B99-D494D155B6ED@microsoft.com... > 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. >> >> >>
Recommended Posts