User Tools

Site Tools

한국어

cuwin:starting_the_windows_explorer_shell:index

Starting the Windows Explorer Shell

This code illustrates how to start the Windows Explorer shell (explorer.exe) in C#. This can be useful, especially if running an application in Autorun mode, and the program needs the Windows Explorer Shell for specific features (e.g. the OpenFileDialog class).

The Windows Explorer Shell can be executed using the Process class.

using (var process = new Process())
{
    process.StartInfo.FileName = "explorer.exe";
    process.Start();
}

Download Source Code

CWR

For the CWR panel PCs, there is another program running in autorun mode called ActivesyncEnabler.exe that can interfere with starting the shell. If you encounter any issues starting the shell in Autorun mode on the CWR, please try to kill the ActivesyncEnabler.exe process before starting explorer.exe. See the following source code for a demonstration:

Download CWR Source Code

cuwin/starting_the_windows_explorer_shell/index.txt · Last modified: 2023/02/03 10:53 by COMFILE Technology