Rebooting Win2k with a batch or an exec
This is a discussion about Rebooting Win2k with a batch or an exec in the Customization Tweaking category; 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.
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
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 in our website and join the conversation
This subject has been archived. New comments and votes cannot be submitted.
Apr 8
Apr 10
0
1 minute
Responses to this topic
I have an executable that'll do it. You want it?

OP
Yes, of course.
Please send me it.
bulletin-board@paddle-coorp.yi.org
Thank you.
Please send me it.
bulletin-board@paddle-coorp.yi.org
Thank you.
Why don't you post the batch file here?

OP
For me, I don't have received it for now on...
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.
set WshShell = CreateObject("WScript.Shell")
WshShell.SendKeys "%{F4}r{ENTER}"
But I think it'll only work if you run it from the desktop.

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.
Or, I'm not always logged in a session...
But thank you for for the idea.
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

OP
Thank you.
This tool seems to fit my aim.
I'll try it this evening.
This tool seems to fit my aim.
I'll try it this evening.