0

CreateProcess API を使用すると、結果は成功しますが、explorer.exe の新しいインスタンスはなく、古いインスタンスはフォルダーを開くだけです。

では、Microsoft Visual C++ で explorer.exe の新しいインスタンスを作成するにはどうすればよいですか?

4

2 に答える 2

1

Windows XP の Explorer.exe コマンド ライン オプションを確認 してください。

見積もり:

The options that you can use with Explorer.exe are /n, /e, /root (plus an object), and /select (plus an object). Option Function


/n Opens a new single-pane window for the default selection. This is usually the root of the drive that Windows is installed on. If the window is already open, a duplicate opens.

/e Opens Windows Explorer in its default view.

/root, Opens a window view of the specified object.

/select, Opens a window view with the specified folder, file, or program selected.

Examples


Example 1: Explorer /select,C:\TestDir\TestProg.exe Opens a window view with TestProg selected.

Example 2: Explorer /e,/root,C:\TestDir\TestProg.exe Opens Explorer with drive C expanded and TestProg selected.

Example 3: Explorer /root,\TestSvr\TestShare Opens a window view of the specified share.

Example 4: Explorer /root,\TestSvr\TestShare,select,TestProg.exe Opens a window view of the specified share with TestProg selected.

于 2009-09-12T01:50:21.007 に答える
0

Process.Start メソッド

于 2009-09-12T01:49:28.537 に答える