The Artima Developer Community
Sponsored Link

.NET Buzz Forum
OT: Batches for sending Windows into standby or shutting it down

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Christian Weyer

Posts: 616
Nickname: cweyer
Registered: Sep, 2003

Christian Weyer is an independent Microsoft MSDN Regional Director and expert for Web services.
OT: Batches for sending Windows into standby or shutting it down Posted: Dec 5, 2004 10:29 AM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Christian Weyer.
Original Post: OT: Batches for sending Windows into standby or shutting it down
Feed Title: Christian Weyer: Web Services & .NET
Feed URL: http://www.asp.net/err404.htm?aspxerrorpath=/cweyer/Rss.aspx
Feed Description: Philosophizing about and criticizing the brave new world ...
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Christian Weyer
Latest Posts From Christian Weyer: Web Services & .NET

Advertisement

I use two batch files extremely often when RDP'ing into my machines (and not just then). One is for completely shutting it down, the other for sending it into standby mode. Both sitting on my Windows desktop.

Their contents is actually very simple and straight forward.

ShutdownMe.bat:
shutdown -s -f -t 1

StandbyMe.bat:
rundll32.exe powrprof.dll,SetSuspendState

The first one just kills any program running and shuts down the computer within 1 second.
The latter depends on which setting is selected in your Power Options for 'When I press the sleep button on my computer' - it has to be set to 'Stand By'.

Read: OT: Batches for sending Windows into standby or shutting it down

Topic: WSCF 0.4 with command line interface Previous Topic   Next Topic Topic: VS.NET 2003 C# code-editor tip of the day

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use