Sunday, September 30, 2007

Open a working folder

C++ code snippet:

ShellExecute(NULL, NULL, L"C:\\Windows", NULL, NULL, SW_SHOWNORMAL);

C++ code snippet:

System.Diagnostics.Process prc = new System.Diagnostics.Process();
prc.StartInfo.FileName = "explorer.exe";
prc.StartInfo.Arguments = "C:\\Windows";

prc.Start();

No comments: