如何打开包含文件夹而不是打开文件夹? [英] how to open containing folder instead of open a folder?
本文介绍了如何打开包含文件夹而不是打开文件夹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个名为Explore的菜单项,
当我单击浏览时,我想打开一些文件夹
范例:C:\ Windows
所以我将代码写为
Hi,
I have an menu item called explore,
when i click on explore i want to open some folder
Exa: C:\Windows
so i wrote the code as
Process.Start("explorer.exe", "/n," + Program.DriveLetter + "\\" + Program.VaultName +
"\\Documents");
System.Diagnostics.Process.Start("explorer.exe", string.Format("/select, \"{0}\"",
Program.DriveLetter + "\\" + Program.VaultName +
"\\Documents"));
System.Diagnostics.Process.Start("explorer.exe", "/select,"+ Program.DriveLetter +
"\\" + Program.VaultName + "\\Documents");
以上所有stmt的工作都很好.
另外,我想在浏览模式下查看..(包括左侧树结构)..
如果您有任何想法,请让我知道
降级,
帕湾.
[修改:在代码中添加了前置标记]
All the above stmt''s work''s fine.
in additional i want to view this in explore mode..(include left side tree structure)..
if u have any idea,Plz let me know
Regrads,
Pawan.
[Modified: added pre tags to code]
推荐答案
嗨
请使用/e
开关作为Explorer.exe
的参数
请参考此链接了解更多信息
http://support.microsoft.com/kb/152457 [
Hi
Please use/e
switch as the arguments forExplorer.exe
Please refere this link for more
http://support.microsoft.com/kb/152457[^]
这篇关于如何打开包含文件夹而不是打开文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文