Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Shutting down Windows

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,522
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Shutting down Windows
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Shutting down Windows - 12/10/2001 9:31:36 AM   
  buabco

 

Posts: 1
Score: 0
Joined: 12/10/2001
From: Chile
Status: offline
HI!

I want to use a script so I can execute it to shutdwon windows from command line. Is there any way I can do this?

Sebastian
 
 
Post #: 1
 
 Re: Shutting down Windows - 12/10/2001 10:18:13 AM   
  stupot

 

Posts: 3
Score: 0
Joined: 12/9/2001
From:
Status: offline
C:\WINDOWS\RUNDLL32.EXE shell32,SHExitWindowsEx 1

C:\WINDOWS\RUNDLL32.EXE shell32,SHExitWindowsEx 2

This ain't no script but it does the job. The first option shutsdown the 2nd restarts the machine. Easy :-) you can apply it to shortcuts.

Hope this helps

(in reply to buabco)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Shutting down Windows Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts