It is currently April 16th, 2024, 6:39 am

Windows 8 and Shutdown.exe

Tips and Tricks from the Rainmeter Community
User avatar
Seahorse
Posts: 1175
Joined: June 9th, 2010, 5:56 pm
Location: Locks heath, UK

Windows 8 and Shutdown.exe

Post by Seahorse »

Is different to its predecessor and LeftMouseUpAction=[shutdown.exe -s -t 0] crashes my PC now instead of simply shutting it down.. A button on the desktop is far easier than the palaver Win 8 currently offers...

Given that there are now fun options like Hybrid shutdown there are a few new tricks available. There is a nice guide here.

Edit:

shutdown.exe -s -t 0 the second 0 removes the crash shutdown.exe -s -t 00
Last edited by Seahorse on November 12th, 2012, 6:30 am, edited 2 times in total.
"Regrettably your planet is one of those scheduled for demolition"
Mike

My Skins at DeviantArt

User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Windows 8 and Shutdown.exe

Post by jsmorley »

These work great for me in Win8, just as they did in Win7:

Shutdown:
C:\Windows\System32\shutdown.exe -s -t 00

Restart:
C:\Windows\System32\shutdown.exe -r -t 00

Code: Select all

[Rainmeter]
Update=1000

[MeterOne]
Meter=Image
W=30
H=30
SolidColor=123,212,155
LeftMouseUpAction=[shutdown.exe -r -t 00]
That's a handy page about shutdown.exe...

I think you might have something specific to your system (hardware driver, some 3rd-party software, who knows) that is giving you trouble with Win8.
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Windows 8 and Shutdown.exe

Post by jsmorley »

One thing about using shutdown.exe from Windows is that a cmd window pops up for a second as they execute. If you want to avoid that, here are two little AutoIt apps that will run without any cmd window:

Source and "Metro" icons included.
WinShutdown.zip
Skin demonstrating usage:
WinShutdown_1.0.rmskin
WinShutdown.jpg

Code: Select all

[Rainmeter]
Update=1000

[MeterShutdown]
Meter=Image
W=64
H=64
ImageName=#@#Images\Other-Power-Shut-Down-Metro-icon.png
ImageAlpha=190
AntiAlias=1
MouseOverAction=[!SetOption MeterShutDown ImageAlpha 255][!UpdateMeter MeterShutdown][!Redraw]
MouseLeaveAction=[!SetOption MeterShutDown ImageAlpha 190][!UpdateMeter MeterShutdown][!Redraw]
LeftMouseUpAction=[#@#Addons\WinShutdown.exe]

[MeterRestart]
Meter=Image
W=64
H=64
X=3R
ImageName=#@#Images\Other-Power-Restart-Metro-icon.png
ImageAlpha=190
AntiAlias=1
MouseOverAction=[!SetOption MeterRestart ImageAlpha 255][!UpdateMeter MeterRestart][!Redraw]
MouseLeaveAction=[!SetOption MeterRestart ImageAlpha 190][!UpdateMeter MeterRestart][!Redraw]
LeftMouseUpAction=[#@#Addons\WinRestart.exe]
__________
Advanced tip:

If you go in Windows Explorer to the @Resources\Addons folder in this skin, right click each of the WinShutdown.exe and WinRestart.exe files and say "Pin to Start", you will now have two nice new "tiles" in your Modern UI Start screen for restart/shutdown so you don't have to dig through the "charms menu" when you want to reboot.
11-11-2012 11-49-39 AM.jpg
You do not have the required permissions to view the files attached to this post.