This article lists command-line switches you can use when you start Windows Explorer (EXPLORER.EXE).
MORE INFORMATION
Syntax
EXPLORER.EXE [/n][/e][,/root,][[,/select],]
Switches
/n: Opens a new window in single-paned (My Computer) view for each item
selected, even if the new window duplicates a window that is
already open.
/e: Uses Windows Explorer view. Windows Explorer view is most similar
to File Manager in Windows version 3.x. Note that the default view
is Open view.
/root,: Specifies the root level of the specified view. The
default is to use the normal namespace root (the
desktop). Whatever is specified is the root for the
display.
/select,: Specifies the folder to receive the initial
focus. If "/select" is used, the parent folder
is opened and the specified object is selected.
Examples
To open a Windows Explorer view to explore only objects on \\, use the following syntax:
explorer /e,/root,\\
To view the C:\WINDOWS folder and select CALC.EXE, use the following syntax:
explorer /select,c:\windows\calc.exe
在CVI工具菜单中,定制工具菜单,新建“Explorer”,名称任意。
LV的工具菜单也可以添加这样的功能,核心是通过私有属性节点找到当前活动的VI,然后调用执行系统命令函数。
C:\Program Files\National Instruments\LabVIEW 8.6\project
该vi名称自动显示在LV工具菜单中,这样当我们点击该工具时,/e表示以资源管理器的方式调用,资源管理器自动定位到该Vi 所在文件夹。
对于CVI和LABVIEW,都是一个不错的工具,很实用,我们学习到的另外一个方法是,Project目录下的VI将显示在TOOL菜单中。