PC Review Forums Newsgroups Windows XP Windows XP WMI Simple Script Help

Reply

Simple Script Help

 
Thread Tools Rate Thread
Old 04-08-2004, 03:37 PM   #1
Peter Whale
Guest
 
Posts: n/a
Default Simple Script Help


For various reasons I have a need to restart an XP Home
PC on a daily basis. Does anyone have some simple
scripting / task advice on how to achieve this? I was
thinking of simply making a .bat file with the restart
command in it and scheduling it with the built in
scheduler. However I am unfamiliar with the command
syntax and commands needed within the .bat file to
achieve the desired result. Anyone got a quick and dirty
solution?
Many thanks in advance and I hope I posted this in the
right section
  Reply With Quote
Old 04-08-2004, 04:42 PM   #2
Torgeir Bakken \(MVP\)
Guest
 
Posts: n/a
Default Re: Simple Script Help

Peter Whale wrote:

> For various reasons I have a need to restart an XP Home
> PC on a daily basis. Does anyone have some simple
> scripting / task advice on how to achieve this? I was
> thinking of simply making a .bat file with the restart
> command in it and scheduling it with the built in
> scheduler. However I am unfamiliar with the command
> syntax and commands needed within the .bat file to
> achieve the desired result. Anyone got a quick and dirty
> solution?
> Many thanks in advance and I hope I posted this in the
> right section

Hi

Shutdown.exe that comes with WinXP should do the job.

In a command prompt, run Shutdown.exe /? for help.


--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/sc...er/default.mspx
  Reply With Quote
Old 04-08-2004, 05:48 PM   #3
Guest
 
Posts: n/a
Default Re: Simple Script Help

Thank you very much. That command live with some
arguements should be perfect in a batch file set to run
using task scheduler. Many thanks for the prompt and
helpful response.
>-----Original Message-----
>Peter Whale wrote:
>
>> For various reasons I have a need to restart an XP

Home
>> PC on a daily basis. Does anyone have some simple
>> scripting / task advice on how to achieve this? I was
>> thinking of simply making a .bat file with the restart
>> command in it and scheduling it with the built in
>> scheduler. However I am unfamiliar with the command
>> syntax and commands needed within the .bat file to
>> achieve the desired result. Anyone got a quick and

dirty
>> solution?
>> Many thanks in advance and I hope I posted this in the
>> right section

>Hi
>
>Shutdown.exe that comes with WinXP should do the job.
>
>In a command prompt, run Shutdown.exe /? for help.
>
>
>--
>torgeir, Microsoft MVP Scripting and WMI, Porsgrunn

Norway
>Administration scripting examples and an ONLINE version

of
>the 1328 page Scripting Guide:
>http://www.microsoft.com/technet/sc...ter/default.msp

x
>.
>

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off