Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - Start scheduled task on remote Server with prompt

Reply
 
Old 09-20-2008   #1 (permalink)
Danc383


 
 

Start scheduled task on remote Server with prompt

I need a script that will give a popup asking would you like to perform this
task? Yes or No

If NO will exit script.

If YES will start a scheduled task on a remote server (SCHTASKS /RUN /S
SERVER002 /TN DAILY_AUTODAILY01) if it starts the task successfully it will
give another message to the user task completed successfully or the task
failed to run please contact HelpDesk.


My System SpecsSystem Spec
Old 09-20-2008   #2 (permalink)
Monitor


 
 

Re: Start scheduled task on remote Server with prompt


"Danc383@xxxxxx" <Danc383hotmailcom@xxxxxx> wrote in
message news:FCED0865-3468-4A5C-9DEE-2A851B9BAEBC@xxxxxx
Quote:

> I need a script that will give a popup asking would you like to perform
this
Quote:

> task? Yes or No
>
> If NO will exit script.
>
> If YES will start a scheduled task on a remote server (SCHTASKS /RUN /S
> SERVER002 /TN DAILY_AUTODAILY01) if it starts the task successfully it
will
Quote:

> give another message to the user task completed successfully or the task
> failed to run please contact HelpDesk.
Let's have a look at what you've go so far!


My System SpecsSystem Spec
Old 09-20-2008   #3 (permalink)
Todd Vargo


 
 

Re: Start scheduled task on remote Server with prompt

Danc383@xxxxxx wrote:
Quote:

> I need a script that will give a popup asking would you like to perform
this
Quote:

> task? Yes or No
>
> If NO will exit script.
>
> If YES will start a scheduled task on a remote server (SCHTASKS /RUN /S
> SERVER002 /TN DAILY_AUTODAILY01) if it starts the task successfully it
will
Quote:

> give another message to the user task completed successfully or the task
> failed to run please contact HelpDesk.
Download "script56.chm" and look up MsgBox and note in particular the
buttons constant for vbYesNo. An example is provided for returning the value
of the button selected into a variable named MyVar of which you can then
use...

If MyVar = vbNo Then Wscript.Quit

--
Todd Vargo
(Post questions to group only. Remove "z" to email personal messages)

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
How to end a Scheduled Task Vista General
Re: How to schedule a vbscript as a Scheduled Task in Server 2003 VB Script
Scheduled Task - States Task Ran - No Results Software
How to start a schedule task from remote computer. Vista General
Scheduled Task Start/End Duration and Intervals Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

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