Solved Restart Explorer.exe the easy way

D3ftOn3Z

As requested
Local time
4:13 AM
Messages
1,412
Location
SG
Hi all, i would like to share a trick / hack. This hack will be quite handy if you're like me, who likes to customize windows a lot. ;)

1st, open up Notepad. After that, type this in.

Code:
@echo off

taskkill /f /im explorer.exe
start explorer.exe
Then, save it as "all files". Name it to "Restart Explorer.bat". You can save it anywhere you like in example (desktop / folder).

Now, here's how to add this as a shortcut to the context menu.

Open up regedit. Navigate to "HKEY_CLASSES_ROOT/Directory/Background/shell"


15qrg2b.png


As you can see the screenshot above, i've already added the "Restart Explorer" Key shortcut to the context menu.

Here's the instructions on how to.

1st, right click on "shell". Navigate to "New" then "Key". Name it to "Restart Explorer".

Once the Key is created, right click on "Restart Explorer". Navigate to "New" then "Key". Name it to "command".

Now find the "Restart Explorer.bat" you've made earlier. Hold down the SHIFT key, then right click on the file. Navigate & click on "Copy as path".

Go back to Registry editor, select the "command" key. In the right hand panel, double click on the (Default) string value.

In the Value data field, paste the path of the "Restart Explorer.bat file you've copied earlier. Click OK.

Close registry editor. And right click on your desktop. You should have the shortcut added to the context menu by now. Shown in the screenshot below.

2eb669z.png


Hope this helps. ;)

D3ftOn3Z.
 

My Computer

Computer Manufacturer/Model Number
D3f's Customs
OS
Win 7 Ultimate SP1 x64
CPU
Intel Pentium Dual Core E5300 OC'd @ 3GHz
Motherboard
Asus P5G41-M LE
Memory
Kingston 2x2GB DDR2-800 Dual Channel SDRAM
Graphics Card(s)
Integrated Intel GMA X4500
Sound Card
Realtek 5.1 HD Audio (ALC887)
Monitor(s) Displays
LG Flatron W1943S @ 60Hz
Screen Resolution
1360 x 768
Hard Drives
Internal - WD Caviar Blue 500GB, External - WD My Passport Essential 500GB
PSU
Headway 450w PSU
Case
Pixxo Slim Black mATX Case
Cooling
Stock Cpu Fan, 1 x Top Case Fan
Keyboard
Logitech K120
Mouse
Logitech LS1 Laser Mouse
Internet Speed
17.66Mb/s Down, 0.82Mb/s Up
Other Info
Creative SBS A300 2.1 Speaker System, LG GH22NS50 22x Internal Super-Multi DVD-RW, 2Wire 5012NV Wireless Modem Router
Very useful tip, thanks a dozen man!
 

My Computer

OS
Windows 7 Ultimate

My Computer

Computer Manufacturer/Model Number
D3f's Customs
OS
Win 7 Ultimate SP1 x64
CPU
Intel Pentium Dual Core E5300 OC'd @ 3GHz
Motherboard
Asus P5G41-M LE
Memory
Kingston 2x2GB DDR2-800 Dual Channel SDRAM
Graphics Card(s)
Integrated Intel GMA X4500
Sound Card
Realtek 5.1 HD Audio (ALC887)
Monitor(s) Displays
LG Flatron W1943S @ 60Hz
Screen Resolution
1360 x 768
Hard Drives
Internal - WD Caviar Blue 500GB, External - WD My Passport Essential 500GB
PSU
Headway 450w PSU
Case
Pixxo Slim Black mATX Case
Cooling
Stock Cpu Fan, 1 x Top Case Fan
Keyboard
Logitech K120
Mouse
Logitech LS1 Laser Mouse
Internet Speed
17.66Mb/s Down, 0.82Mb/s Up
Other Info
Creative SBS A300 2.1 Speaker System, LG GH22NS50 22x Internal Super-Multi DVD-RW, 2Wire 5012NV Wireless Modem Router
You've given me an idea to make a program like this... thanks. :D
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom built
OS
Windows 8 Pro 64-bit
CPU
Intel Core i7 950 @4.4GHz
Motherboard
EVGA 131-GT-E767
Memory
12GB DDR3 1333MHz @1400 (9-9-9-24)
Graphics Card(s)
2x AMD Radeon HD 6770
Sound Card
Sound Blaster Audigy
Monitor(s) Displays
Acer S231HL + Acer E19T5W
Screen Resolution
1920x1080 + 1440x900
Hard Drives
128GB Samsung 840 Pro
1TB Seagate Barracuda 7200RPM 64mb
500GB Seagate Barracuda 7200RPM 16mb
PSU
Corsair GS800
Case
Custom-made
Cooling
CM Hyper212+, lots of fans
Keyboard
NMB RT8255C+
Mouse
Func MS-3
Internet Speed
30/1.5
Antivirus
Microsoft Security Essentials/Spybot SD/Malwarebytes
Browser
Google Chrome
Other Info
Onkyo TX-27 receiver & two Realistic Optimus T100s.
Nice, maybe you can put it into the tutorial section. There it would be easier to find in a while from now.
 

My Computer

Computer Manufacturer/Model Number
HP, Dell, Gateway, Toshiba - 4 laptops and 2 desktops
OS
Vista, Windows7, Mint Mate, Zorin, Windows 8
CPU
from 1.6GHz Duo to i7
Monitor(s) Displays
2x HP w2207
Hard Drives
5x HDD, 7x SSD, 12x Externals
Keyboard
with trackball - no mices
Mouse
Trackball mice
Internet Speed
DSL 6000
Excellent! Thank you.
 

My Computer

Computer Manufacturer/Model Number
Home built
OS
Windows 7 Ultimate 32 bit
CPU
Intel(R) Pentium(R) 4 CPU 3.00GHz
Motherboard
ASUS P4P800-VM Motherboard Chipset: Intel 865G + ICH5
Memory
2.50 GB RAM
Graphics Card(s)
NVIDIA GeForce 7600 GS
Sound Card
SoundMax Integrated Digital Audio (Chip)
Monitor(s) Displays
ViewSonic VX 1962 wm
Screen Resolution
1680 X 1050
Hard Drives
Seagate Barracuda 7200.10 80 GB
ST380215A ATA Device 18.6 GB
Western Digital "My Book" external hard drive 750 GB
Cooling
Fan based
Keyboard
Microsoft Comfort Curve Keyboard 2000 v10 USB
Mouse
Logitec optic USB
Internet Speed
3.01 Mb/s download 0.64 Mb/s upload
Cool, Worked perfectly. Nice Trick.
Thanks
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self Built
OS
Win 10 Pro x64
CPU
Intel I5-2500K @3.3GHz
Motherboard
Asrock P67 Extreme4
Memory
16GB G.Skill Ripjaws X (4x4GB)
Graphics Card(s)
EVGA GeForce 750 Ti SC 2GB
Sound Card
ASUS Xonar DG 5.1 Channels 24-bit 96KHz PCI Interface Sound
Monitor(s) Displays
auria eq2367
Screen Resolution
1920 x 1080
Hard Drives
250GB Samsung 850 EVO SSD
1TB WD Blue
1TB Hitachi
PSU
SeaSonic X 650W 80 Plus Gold
Case
Corsair Obsidian 750D
Cooling
Corsair H60, Three 140mm case fans
Keyboard
Logitech Wireless Keyboard K520
Mouse
Logitech Wireless Mouse M310
Internet Speed
Wave Broadband ~ 100 dn 5 up
Antivirus
Windows Defender, Malwarebytes Premium
Browser
Edge, IE11, Chrome
Other Info
Laptop specs: HP g7-1365dx /
CPU: AMD A6-3420M APU with Radeon(tm) HD Graphics /
RAM: Crucial 8Gb (2x4Gb) /
SSD: Crucial M4-CT128M4SSD2 ATA Device/ FW 000F /
GFX: AMD Radeon HD 6520G /
OS: Windows 10 Pro x64
I've been using that one for a few weeks, but never really thought of sharing it :o Thanks for sharing Ayie ;)
 
Nice, maybe you can put it into the tutorial section. There it would be easier to find in a while from now.
That's a gd idea. :) Maybe the mods can move this thread there? :o

Excellent! Thank you.

Cool, Worked perfectly. Nice Trick.
Thanks

I've been using that one for a few weeks, but never really thought of sharing it :o Thanks for sharing Ayie ;)

You're welcome. :)
 

My Computer

Computer Manufacturer/Model Number
D3f's Customs
OS
Win 7 Ultimate SP1 x64
CPU
Intel Pentium Dual Core E5300 OC'd @ 3GHz
Motherboard
Asus P5G41-M LE
Memory
Kingston 2x2GB DDR2-800 Dual Channel SDRAM
Graphics Card(s)
Integrated Intel GMA X4500
Sound Card
Realtek 5.1 HD Audio (ALC887)
Monitor(s) Displays
LG Flatron W1943S @ 60Hz
Screen Resolution
1360 x 768
Hard Drives
Internal - WD Caviar Blue 500GB, External - WD My Passport Essential 500GB
PSU
Headway 450w PSU
Case
Pixxo Slim Black mATX Case
Cooling
Stock Cpu Fan, 1 x Top Case Fan
Keyboard
Logitech K120
Mouse
Logitech LS1 Laser Mouse
Internet Speed
17.66Mb/s Down, 0.82Mb/s Up
Other Info
Creative SBS A300 2.1 Speaker System, LG GH22NS50 22x Internal Super-Multi DVD-RW, 2Wire 5012NV Wireless Modem Router
Thanks, it works perfectly.

Do you know how I can use this technique to add an option to quickly and smartly "Show Hidden" or "Hide Hidden" files and folders?
 

My Computer

OS
Windows 7-RC

My Computer

Computer Manufacturer/Model Number
D3f's Customs
OS
Win 7 Ultimate SP1 x64
CPU
Intel Pentium Dual Core E5300 OC'd @ 3GHz
Motherboard
Asus P5G41-M LE
Memory
Kingston 2x2GB DDR2-800 Dual Channel SDRAM
Graphics Card(s)
Integrated Intel GMA X4500
Sound Card
Realtek 5.1 HD Audio (ALC887)
Monitor(s) Displays
LG Flatron W1943S @ 60Hz
Screen Resolution
1360 x 768
Hard Drives
Internal - WD Caviar Blue 500GB, External - WD My Passport Essential 500GB
PSU
Headway 450w PSU
Case
Pixxo Slim Black mATX Case
Cooling
Stock Cpu Fan, 1 x Top Case Fan
Keyboard
Logitech K120
Mouse
Logitech LS1 Laser Mouse
Internet Speed
17.66Mb/s Down, 0.82Mb/s Up
Other Info
Creative SBS A300 2.1 Speaker System, LG GH22NS50 22x Internal Super-Multi DVD-RW, 2Wire 5012NV Wireless Modem Router
When I right click the desktop and click on Restart Explorer a box pops up titled: Explorer.EXE.

In the box is an white X in a red circle followed by these words:

The version of this file in not compatible with the version of Windows you're running. Check you computer's sytem information to see whether you need an x86 (32-bit) or x64 (64-bit) version of the program, and then contact the software publisher.

There's an OK click box at the bottom right.

I believe I've accurately followed you instructions but I can't rule out a mistake on my part. Any suggestions? Thank you.
 

My Computer

Computer Manufacturer/Model Number
Home made
OS
Windows 7 Home Premium x64
CPU
AMD 550
Motherboard
Gigabyte GA-MA78GM-S2HP
Memory
G.SKILL DDR2-1066 4 x 1024MB
Graphics Card(s)
Onboard AMD 4200
Sound Card
Onboard Realtek
Monitor(s) Displays
Asus
Hard Drives
2 x WD6401AALS 640GB
PSU
Rosewill RP600V2-S-SL
Case
Compucase
Cooling
CPU: ARCTIC COOLING Freezer 64 Pro 92mm, Case: 2 x 120mm
Very Nice - works great - thanks:cool:
 

My Computer

Computer Manufacturer/Model Number
dell optiplex - 2003
OS
windows7 7600 x86
CPU
itel pentium 4
Memory
3.00 GB
Graphics Card(s)
diamond radion x1050
Sound Card
SoundMax
Monitor(s) Displays
dell 2408wfp dell e172fp
Screen Resolution
1920 x 1200 1280 x 1024
Hard Drives
2 - 80 GB internals WD
1 - 01 TB ext
2 - 750 GB ext
1- 500 GB ext
all running on system no problems
Keyboard
old logitech cordless
Mouse
logitech wireless
Internet Speed
16 / 4
Other Info
networked into my sbs2003 server running sp1 still
it's a wonder I could even get windows 7 to connect to it

My Computer

Computer type
PC/Desktop
OS
Windows 10 Home x64
CPU
INTEL Core i5-750 Quad-Core 3.37GHz
Motherboard
ASUS P7P55D
Memory
HyperX Fury Black Series 8GB (2 x 4GB) 1866Mhz
Graphics Card(s)
EVGA GeForce GTX 750 Superclocked 1GB 128-Bit GDDR5
Monitor(s) Displays
LG 32MA68HY 32" IPS
Screen Resolution
1920 x 1080
Hard Drives
Samsung 840 Evo 120GB, SEAGATE 500GB Barracuda® 7200.12, SATA 3 Gb/s, 7200 RPM, 16MB cache
PSU
ANTEC TruePower New TP-550, 80 PLUS, 550W
Case
ANTEC Three Hundred Illusion
Cooling
COOLER MASTER Hyper 212 Plus, 4 x 120mm 1 x 140mm Noctua's
Internet Speed
85 + Mbps
Antivirus
Avast
Browser
Vivaldi

My Computer

Computer Manufacturer/Model Number
Hewlett packard/p6512uk
OS
Microsoft Windows 7 Home Premium 64-bit 7600
CPU
IIx4 amd athelon 635 processor
Motherboard
FOXCONN 2AA9
Memory
2x2gb
Graphics Card(s)
ati radeon HD 5450
Sound Card
(1) Realtek High Definition Audio (2) AMD High Definition
Monitor(s) Displays
samsung lcd tv 32"
Screen Resolution
1360x 768
Hard Drives
(1) WDC WD10 01FAES-60Z2A0 SATA Disk Device (2) Maxtor OneTouch USB Device (3) ST310003 33AS USB Device (4) WD My Book 1111 USB Device
PSU
?
Cooling
air!
Keyboard
wireless hp
Mouse
wireless Hp,optical
Internet Speed
1.10mb/s
Antivirus
MSE
Browser
Firefox
Very nice. How do you do multiple choice on it
 

My Computer

Computer Manufacturer/Model Number
Amilo M3438g
OS
Windows 7 Home Premium 32bit
CPU
?
Motherboard
?
Memory
2GB Ram
Graphics Card(s)
nVidia GeForce 6800
Sound Card
Realtek
Monitor(s) Displays
Laptop Screen
Screen Resolution
1440x900
Hard Drives
2 - HDD
PSU
?
Case
Laptop
Cooling
?
Keyboard
UK Layout - into laptop
Mouse
Microsoft Wireless Mobile Mouse 1000
Internet Speed
30mbps (VirginMedia)
Other Info
Fujitsu Siemens Computers Amilo M3438G with 2GHz Processor
I know this thread is older than trees but, because this nice Tutorial only works fully when you execute the Batch File directly and will not work fully via a shortcut or script, I'd like to share this which works in every manner :

@echo off

taskkill /f /im explorer.exe
start "" "C:\Windows\explorer.exe"
 

My Computer

OS
Windows (32 & 64 bit) XP, 7, 8CP; Ubuntu 10.10; Android x86
I've already made a batch file to restart Explorer.exe.
 

Attachments

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom-built
OS
Windows 7 Professional x64
CPU
AMD A8-7600 APU
Motherboard
Gigabyte F2A68HM-H
Memory
DDR3
Graphics Card(s)
AMD Radeon R7 Graphics
Sound Card
On-board AMD High Definition Audio
Monitor(s) Displays
AOC LM-700
Screen Resolution
1280x1024
Hard Drives
320GB Seagate ST3320418AS SATA Hard Drive
PSU
Hipro HP OEM 300W PSU
Keyboard
HP Multimedia Keyboard
Mouse
Logitech M-SBF96
Internet Speed
Spectrum 400 Mbps
Antivirus
Avast Internet Security 2019
Browser
Internet Explorer/Firefox ESR
Back
Top