Compatible Support Forums: Rebooting Win2k with a batch or an exec

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Rebooting Win2k with a batch or an exec

#1 User is offline   paddle 

  • stranger
  • Group: Members
  • Posts: 6
  • Joined: 08-April 01

Posted 08 April 2001 - 01:30 AM

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
0

#2 User is offline   DosFreak 

  • Carpal Tunnel
  • Group: Moderators
  • Posts: 3885
  • Joined: 04-February 00

Posted 08 April 2001 - 08:15 AM

I have an executable that'll do it. You want it?
0

#3 User is offline   paddle 

  • stranger
  • Group: Members
  • Posts: 6
  • Joined: 08-April 01

Posted 08 April 2001 - 08:23 AM

Yes, of course.
Please send me it.
bulletin-board@paddle-coorp.yi.org

Thank you.
0

#4 User is offline   Igor 

  • enthusiast
  • Group: Members
  • Posts: 382
  • Joined: 24-July 99

Posted 09 April 2001 - 07:40 PM

Why don't you post the batch file here?
0

#5 User is offline   paddle 

  • stranger
  • Group: Members
  • Posts: 6
  • Joined: 08-April 01

Posted 09 April 2001 - 09:24 PM

For me, I don't have received it for now on...
0

#6 User is offline   bottleneck 

  • journeyman
  • Group: Members
  • Posts: 97
  • Joined: 11-September 00

Posted 09 April 2001 - 10:29 PM

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.
0

#7 User is offline   paddle 

  • stranger
  • Group: Members
  • Posts: 6
  • Joined: 08-April 01

Posted 10 April 2001 - 06:40 AM

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.
0

#8 User is offline   nagual 

  • enthusiast
  • Group: Members
  • Posts: 221
  • Joined: 09-May 00

Posted 10 April 2001 - 11:19 AM

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
0

#9 User is offline   paddle 

  • stranger
  • Group: Members
  • Posts: 6
  • Joined: 08-April 01

Posted 10 April 2001 - 12:52 PM

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

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users