Rebooting Win2k with a batch or an exec

Hi, I wish to be able to reboot my PC by executing on it a batch or an executable. Is-it possible and in fact what must I put in my batch or what exec must I use? Thank you very much. Paddle.

Customization Tweaking 1789 This topic was started by ,


data/avatar/default/avatar13.webp

6 Posts
Location -
Joined 2001-04-08
Hi,
 
I wish to be able to reboot my PC by executing on it a batch or an executable. Is-it possible and in fact what must I put in my batch or what exec must I use?
Thank you very much.
 
Paddle

Participate on our website and join the conversation

You have already an account on our website? Use the link below to login.
Login
Create a new user account. Registration is free and takes only a few seconds.
Register
This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


data/avatar/default/avatar39.webp

3867 Posts
Location -
Joined 2000-02-04
I have an executable that'll do it. You want it?

data/avatar/default/avatar13.webp

6 Posts
Location -
Joined 2001-04-08
OP
Yes, of course.
Please send me it.
bulletin-board@paddle-coorp.yi.org
 
Thank you.

data/avatar/default/avatar08.webp

391 Posts
Location -
Joined 1999-07-24
Why don't you post the batch file here?

data/avatar/default/avatar13.webp

6 Posts
Location -
Joined 2001-04-08
OP
For me, I don't have received it for now on...

data/avatar/default/avatar40.webp

97 Posts
Location -
Joined 2000-09-11
This is the .vbs I use for restart:
 
 
set WshShell = CreateObject("WScript.Shell")
WshShell.SendKeys "%{F4}r{ENTER}"
 
 
But I think it'll only work if you run it from the desktop.

data/avatar/default/avatar13.webp

6 Posts
Location -
Joined 2001-04-08
OP
Yes, I think so too, cos it seems to send the Alt+F4 keys to close windows...
Or, I'm not always logged in a session...
But thank you for for the idea.

data/avatar/default/avatar08.webp

220 Posts
Location -
Joined 2000-05-09
www.sysinternals.com has a few utils called 'pstools' which i find very useful. amongst other things you can batch local or remote (same domain though) shutdowns and reboots

data/avatar/default/avatar13.webp

6 Posts
Location -
Joined 2001-04-08
OP
Thank you.
This tool seems to fit my aim.
I'll try it this evening.