

Then, copy and paste the following command into the location box:- cmd.exe /c "taskkill.exe /f /im explorer.exe & start explorer.exe" For that, right-click on the free space on your desktop and select New > Shortcut in the context menu. To use this method, you first need to create a desktop shortcut. How to Restart File Explorer using Desktop Shortcut? Windows Explorer will restart automatically. If you prefer to use a keyboard shortcut to restart File Explorer, use these steps:-įirst, press and hold the Alt + Tab keys simultaneously to open the Task Switcher. How to Restart File Explorer through Keyboard Shortcut? Then, type the following commands one by one and hit Enter key on the keyboard after each command to restart File Explorer:. First, launch Command Prompt as administrator. To restart File Explorer using Command Prompt, do the following:. How to Restart File Explorer using Command Prompt? In the elevated PowerShell window, type one of the following commands and hit the Enter key on the keyboard to restart the File Explorer:. First, open Windows PowerShell as an administrator. To restart File Explorer using Windows PowerShell, do these steps:. How to Restart File Explorer through Windows PowerShell? Choose the Restart option in the pop menu to restart File Explorer. Next, select Windows Explorer in the list and right-click on it. Then, click the arrow before your current user account to expand the list of running programs. When Task Manager appears on your computer, switch to the Users tab. To do that, you can use Ctrl + Shift + Esc keyboard shortcut. To restart File Explorer on Windows 11 through Task Manager, do these steps:. to Quickly Restart File Explorer on Windows 11? Var ptr = FindWindow("Shell_TrayWnd", null) Ĭonsole.WriteLine("INIT PTR: ", Environment.GetEnvironmentVariable("WINDIR"), "explorer.exe") Static extern IntPtr FindWindow(string lpClassName, string lpWindowName) Ĭonst int WM_USER = 0x0400 //(v=vs.85).aspx Static extern bool PostMessage(IntPtr hWnd, uint Msg, IntPtr wParam, IntPtr lParam) Hope this helps, there's a lot of interesting info in this thread. This closes the explorer shell then waits for it to completely shut down and restarts it. After parsing some of the earlier answers and doing a bit of research, I've created a little complete example in C#.
