majkinetor
majkinetor

Reputation: 9046

Restart explorer without executing start up items

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 ?

Upvotes: 0

Views: 299

Answers (2)

majkinetor
majkinetor

Reputation: 9046

Meh...

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

Upvotes: 1

Gabriella
Gabriella

Reputation: 41

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

Upvotes: 1

Related Questions