Explorer命令行参数

explorer命令,说的简单一些就是explorer+路径名;  
  例如:explorer   http://www.global-boy.com  
  explorer   e:/等等。。。。  
   
  以下是 微软 全球技术中心材料(希望对你有帮助):  
   
  Windows   Explorer   Command-Line   Options   (Q152457)  
   
  --------------------------------------------------------------------------------  
  The   information   in   this   article   applies   to:  
   
   
  Microsoft   Windows   2000   ,   Professional    
  Microsoft   Windows   2000   ,   Server    
  Microsoft   Windows   2000   ,   Advanced   Server    
  Microsoft   Windows   2000   ,   Datacenter   Server    
  Microsoft   Windows   NT   Workstation   version   4.0    
  Microsoft   Windows   NT   Server   version   4.0    
   
   
  --------------------------------------------------------------------------------  
   
   
  SUMMARY  
  This   article   lists   the   command-line   switches   that   you   can   use   with   Windows   Explorer   (Explorer.exe).    
   
   
   
  MORE   INFORMATION  
   
  Explorer   [/n]   [/e]   [(,)/root,<object>]   [/select,<object>]  
   
  /n                                 Opens   a   new   single-pane   window   for   the   default  
                                      selection.   This   is   usually   the   root   of   the   drive   Windows  
                                        is   installed   on.   If   the   window   is   already   open,   a  
                                      duplicate   opens.  
   
  /e                                 Opens   Windows   Explorer   in   its   default   view.  
   
  /root,<object>         Opens   a   window   view   of   the   specified   object.  
   
   
  /select,<object>     Opens   a   window   view   with   the   specified   folder,   file   or  
                                      application   selected.  
   
  Examples:  
   
        Example   1:           Explorer   /select,C:/TestDir/TestApp.exe  
   
              Opens   a   window   view   with   TestApp   selected.  
   
        Example   2:     Explorer   /e,/root,C:/TestDir/TestApp.exe  
   
              This   opens   Explorer   with   C:   expanded   and   TestApp   selected.  
   
        Example   3:     Explorer   /root,//TestSvr/TestShare  
   
              Opens   a   window   view   of   the   specified   share.  
   
        Example   4:     Explorer   /root,//TestSvr/TestShare,select,TestApp.exe  
   
              Opens   a   window   view   of   the   specified   share   with   TestApp   selected.  
   
   
  --------------------------------------------------------------------------------  
  Published   Aug   2   1996   12:00AM     Issue   Type      
  Last   Modifed   Dec   19   2001   1:07PM     Additional   Query   Words   prodnt   shell   nthowto      
  Keywords    
   
   
  Panlong   Lee  
  http://www.global-boy.com

 

这篇文章不知道能否解决你的问题,而且不能确定是否适用于Windows   2000。  
   
  Command-Line   Switches   for   Windows   Explorer    
   
  Q130510  
   
   
  --------------------------------------------------------------------------------  
  The   information   in   this   article   applies   to:  
   
  Microsoft   Windows   95    
  Microsoft   Windows   NT   Server   version   4.0    
  Microsoft   Windows   NT   Workstation   version   4.0  
   
  --------------------------------------------------------------------------------  
   
   
  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,<object>][[,/select],<sub   object>]    
  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,<object>:     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,<sub   object>:     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   //<server   name>,   use   the   following   syntax:    
  explorer   /e,/root,//<server   name>    
   
   
   
  To   view   the   C:/WINDOWS   folder   and   select   CALC.EXE,   use   the   following   syntax:    
  explorer   /select,c:/windows/calc.exe    
   
   
   
   
  Additional   query   words:   4.0   parameters    
   
  Keywords   :   win95    
  Issue   type   :    
  Technology   :   kbWinNTsearch   kbWinNTWsearch   kbWinNTW400   kbWinNTW400search   kbWinNT400xsearch   kbWinNTSsearch   kbWinNTS400xsearch   kbWinNTS400    
   
   
  Last   Reviewed:   December   14,   2000  
  &copy;   2001   Microsoft   Corporation.   All   rights   reserved.   Terms   of   Use.  
     
   
   
   
  --------------------------------------------------------------------------------  
  Send   feedback   to   MSDN.Look   here   for   MSDN   Online   resources.   
  

Explorer命令行参数

Explorer [/n] [/e] [(,)/root,<object>] [/select,<object>]

/n 打开系统盘(最大化)
/e 以默认(资源管理器)查看方式打开文件夹 ,如图


/root,<object>    Opens a window view of the specified object. (不清楚可以产生什么效果...)
/select,<object> 打开文件(夹)后选中。这个比较有用,可以很快速的文件定位。


例:
exporer /e,/select,E:/Program Files/TTPlayer/TTPlayer.exe
以资源管理器查看方式打开文件夹,选中TTPlayer.exe 

(摘自 http://bbs.deepin.org/read.php?tid=566206 http://topic.csdn.net/t/20020403/19/620622.html

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值