windows命令行下打开浏览器窗口(explorer)

在命令行下打开浏览器窗口可用以下命令:

explorer
call explorer
start explorer

打开当前目录:

D:\apache>explorer .\

打开当前盘根目录:

D:\apache>explorer \


详细:

Explorer [/n] [/e] [(,)/root,] [/select,]

/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, Opens a window view of the specified object.


/select, 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.


参考:
[url]http://support.microsoft.com/kb/152457[/url]

你可能感兴趣的:(others)