博客首页 | 排行榜 |

csxcs366的博客--LABVIEW CVI

http://labview.weebly.com/ 群:80754347 群:78561268 群:37591940

个人档案
博文分类
LV Nugget 使用浏览器浏览文件夹  2009-08-05 13:25
对于正在编辑的CVI文件或者LABVIEW文件,我们经常遇到需要查找该文件所在文件夹或者查看该文件夹中的其它文件,最好的方法是使用explorer.exe,看一下Explorer支持的常用命令行输入方式。

SUMMARY  
  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:     <br />   explorer   /e,/root,\\<server   name>     <br />     <br />     <br />     <br />   To   view   the   C:\WINDOWS   folder   and   select   CALC.EXE,   use   the   following   syntax:     <br />   explorer   /select,c:\windows\calc.exe     <br />     <br />     在CVI工具菜单中,定制工具菜单,新建“Explorer”,名称任意。<br /> <br /> <img src="/data/myspace/8/43958//blog/5b56af74.jpg" alt=" " width="766" height="353" /><br /> <br /> %FILE%表示当前活动文件,添加到工具菜单中后,运行,就可以直接打开当前活动文件所在文件夹。<br /> <br /> LV的工具菜单也可以添加这样的功能,核心是通过私有属性节点找到当前活动的VI,然后调用执行系统命令函数。<br /> <br /> <img src="/data/myspace/8/43958//blog/1249449775a7d91da2.jpg" alt=" " width="373" height="170" /><br /> <br /> VI属性设置为打开即运行,并将该VI拷贝至下列目录下:<br /> C:\Program Files\National Instruments\LabVIEW 8.6\project<br /> <br /> 该vi名称自动显示在LV工具菜单中,这样当我们点击该工具时,/e表示以资源管理器的方式调用,资源管理器自动定位到该Vi 所在文件夹。<br /> <br /> 对于CVI和LABVIEW,都是一个不错的工具,很实用,我们学习到的另外一个方法是,Project目录下的VI将显示在TOOL菜单中。<br /> <br /> <br />
类别:LV Nugget |
上一篇:LV Nugget--使用默认方式打开文件 | 下一篇:LV Nugget 使用类浏览器
以下网友评论只代表其个人观点,不代表本网站的观点或立场