tags:

views:

59

answers:

2

This is the small AutoHotKey script I use to restart explorer:

WinGet, h, ID, ahk_class Progman
PostMessage, WM_QUIT, 0, 0, , ahk_id %h% 
Run, explorer.exe

The problem is that it runs Start up items. I see that this dude had the same problem.

Anybody knows a way to fix it ?

+1  A: 

One ugly solution might be to temporarily modify the Startup folder path prior to restarting explorer.exe.

The registry key to modify would be:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Startup
Gabriella
I guess that might alert some security programs...
majkinetor
+1  A: 

Meh...

They key is to hold SHIFT while loading explorer.exe.... Sending the key to window seems to work most of the time

majkinetor