Jump to content
Compatible Support Forums
Sign in to follow this  
paddle

Rebooting Win2k with a batch or an exec

Recommended Posts

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

Share this post


Link to post

Yes, of course.

Please send me it.

bulletin-board@paddle-coorp.yi.org

 

Thank you.

Share this post


Link to post

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.

Share this post


Link to post

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.

Share this post


Link to post
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

Share this post


Link to post

Thank you.

This tool seems to fit my aim.

I'll try it this evening.

Share this post


Link to post

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×