Starting Windows Explorer From the Command Line

explorer.exe is the process behind your taskbar, desktop icons, and file windows. Sometimes it freezes, sometimes you need it for automation, and sometimes you just want a quick way to bring everything back without alt-tabbing through menus. Running it from cmd is straightforward once you know where the file lives and what arguments you can pass. Open a command prompt. Type explorer.exe and hit Enter. That's it, it starts the process if it isn't already running. If you need to start a specific folder, add the path: explorer.exe C:\Users\YourName\Documents. It opens that location in a new window. The tricky part is when explorer.exe is already running or when you need to restart it after a crash. You can kill the process first with taskkill /f /im explorer.exe and then launch it again. Be warned: your taskbar and desktop will disappear for a few seconds. Not ideal if someone's looking over your shoulder, but useful for scripted deployments.

I had this one time where a third-party shell extension was holding explorer.exe hostage during startup. The process would launch but never render the desktop. Killing it and relaunching from cmd worked fine, but only because the extension didn't hook into the fresh process fast enough to cause the same deadlock. I ended up adding a 5-second sleep between the taskkill and the explorer.exe command in a batch file. Simple, but it saved me from opening Task Manager manually every morning. If you want to start a specific view mode, you can use flags like /select to highlight a file or /root to set the root directory for the window. explorer.exe /select,C:\path\to\file.txt is handy for scripts that need to draw attention to a particular file after creation.

When This Actually Matters

Most people never touch this unless something breaks. But in enterprise environments, deployment scripts, or remote troubleshooting sessions, having a reliable cmd pathway to explorer.exe is essential. You don't need a GUI tool for it. The built-in command works on every version of Windows from XP through the current builds. One thing people miss: if you run explorer.exe from a regular cmd window, it becomes a child process of that terminal. Close the window and it can sometimes terminate the process along with it. Running it from an elevated admin prompt or from a different parent process keeps it detached and stable. I learned this the hard way when a scheduled task I wrote kept killing explorer.exe because the parent cmd exited unexpectedly. Also, don't expect this to work around policies that block explorer.exe entirely. Group Policy can disable it, and in those cases you're looking at deeper registry changes or a policy override, not a cmd command.

Get the Full Details

How to Restart explorer.exe in Windows 10 Using CMD - StackHowTo
How to Restart explorer.exe in Windows 10 Using CMD - StackHowTo

There is no standalone download for this. explorer.exe ships with Windows. You already have it in C:\Windows\System32. The only thing you need is a command prompt and the right syntax.