Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Is there a command to shut down explorer.exe cleanly?

12 Mar 2014   #1
Butters

Windows 7 Professional x64
 
 
Is there a command to shut down explorer.exe cleanly?

Hi everybody. I'm looking for a way to properly shut down explorer.exe using a command. What do I mean by this? Well, explorer keeps a lot of its preferences you have changed in its memory. When explorer.exe is closed properly (e.g. when you log off) it will write these changes to the registry. However, by using more traditional methods (e.g. taskkill /f /im explorer.exe or just killing the explorer.exe process using Task Manager), it is quit instantly and forcefully, not getting the chance to write the data in its memory to the registry.
Now I know about the wonderful trick of bringing up the shutdown dialog box and holding down CTRL+ALT+Shift and clicking cancel (or doing the same thing on the start menu shutdown button), but I want to know if there is some command I can use (preferably a command that can be used in a .bat file) to cleanly and properly close explorer.exe. Any help would be great.


My System SpecsSystem Spec
.
13 Mar 2014   #2
MilesAhead

Windows 7 32 bit
 
 

I don't know about cleanly closing Explorer. But I have a small utility called Update Environment that is meant to flush changes to disk similar to logging off. It simply calls the EnvUpdate() function provided by AutoIt scripting language. It's one of those things were it may work or not depending on the nature of what was modified. For example Registry changes. They seem to "stick" without me having to log off, then back in.

In any case I've never seen it do any harm. You may download from this page:
Miles Ahead Software

As noted on the page, all the software is free for you to use at your own risk.
My System SpecsSystem Spec
13 Mar 2014   #3
Butters

Windows 7 Professional x64
 
 

Thanks, Miles. That actually seems to work pretty well. I'll probably use that in the future.

By the way, that's a cool website. I might just take a look at some other software you have on there.
My System SpecsSystem Spec
.

13 Mar 2014   #4
MilesAhead

Windows 7 32 bit
 
 

Quote   Quote: Originally Posted by Butters View Post
Thanks, Miles. That actually seems to work pretty well. I'll probably use that in the future.

By the way, that's a cool website. I might just take a look at some other software you have on there.
Thanks for the kind words.
My System SpecsSystem Spec
Reply

 Is there a command to shut down explorer.exe cleanly?




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Explorer Command Bar Location
i didnt know how to call it so... http://i.imgur.com/ijp09.jpg i can see it located in the bottom of the explorer and not the top, how do i put it on the top? and how can i change the Library and Favorites icon in the navigation bar?
Customization
Some errors about running the command automatically before shut down
A program often block the computer to shut down, so I want to run the command before shut down. I run the bat : taskkill /f /im ZuoYou.exe And I do the follow http://i730.photobucket.com/albums/ww309/ytyyutianyun/YUYUXUAN-PC/photobucket/Ashampoo_Snap_20131130_08h18m59s_001_.jpg...
General Discussion
Internet Explorer Command Bar - Customize
How to Customize the Command Bar in IE9 and IE10 This tutorial will show you how to customize the Command bar buttons in IE9 and IE10. Here's How: 1. If you have not already, you will need to turn on the Command bar in IE9 or IE10.
Tutorials
Cannot reboot cleanly w/o BSOD
Hi there, Iím having trouble with a BSOD and hope that someone can help. I have a relatively clean install of Win 7 Home Premium on a HP laptop. The computer works fine except whenever it needs to reboot. All reboots fail - what happens is that when I shutdown, the computer sits on the...
BSOD Help and Support
Windows 7 won't shut down cleanly when Live Messenger o
Hi everyone. This is my first post here. After Google failed me I tried getting help on the Microsoft Forum but the only advice I received was to try reinstalling, which I had already done. I wasn't sure if this is the right forum for this. If not please let me know so I can correct the problem....
BSOD Help and Support
Explorers not closing cleanly
Anyone else having this issue?? I haven't read about it anywhere, but it's pretty annoying build 7000 & 7100.. explorer.exe windows just do not always shutdown fully. I'm not sure entirely what causes it, maybe move operations, as I do a lot of them. I can pretty much open an explorer window,...
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 15:10.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App