Murray Gordon

Flash a-ah! Savior of the universe...

  Home  |   Contact  |   Syndication    |   Login
  200 Posts | 2 Stories | 290 Comments | 100 Trackbacks

News

Google My Blog

Tag Cloud


Article Categories

Archives

Post Categories

Image Galleries

Blogs

Here are some pointers on how to use Windows Explorer, in Microsoft Windows XP Professional from the Command Line.

To have C: open (No folders)

%SystemRoot%\Explorer.exe /root, C:\

To have My Computer

C:\WINDOWS\explorer.exe /n

To have C: open expanded - Examples

%windir%\EXPLORER.EXE /e,c:
%windir%\EXPLORER.EXE /e,f:\Limited Documents

To have C: open and My Documents

    %windir%\EXPLORER.EXE /e,c:,%HOMEDRIVE%%HOMEPATH%\My Documents

For it to open to My Documents:

explorer /n,/e,%HOMEDRIVE%%HOMEPATH%\My Documents or
C:\WINDOWS\explorer.exe /n,/e,%HOMEDRIVE%%HOMEPATH%\My Documents

To have My Documents open only (No folders)

Explorer /root, c:\Documents and Settings\%username%\My Documents
Explorer /root, c:,%HOMEDRIVE%%HOMEPATH%\Kelly's Computer

If you wish to have Explorer open at My Documents on another drive, you would use:

%SystemRoot%\explorer.exe /e, f:\My Documents

To have another Drive letter assigned to opening: D for example

C:\Windows\Explorer.exe /e, d:\

d:\ can be modified for any folder/sub-folder you like. As in:

%SystemRoot%\Explorer.exe /e,d:\My Stuff

The /e switch tells Windows Explorer to open in the two pane explorer mode and the c:\ tells it to open in folder C:\. If you omit the /e switch, Windows Explorer opens in a single pane view.

References and Other Links:

Original Microsoft Support Newsgroup Post

Command-Line Switches for Windows Explorer
http://support.microsoft.com/support/kb/articles/Q130/5/10.asp

Command Line Switches Examples for Windows Explorer
http://www.kellys-korner-xp.com/xp_c.htm#comline

Explorer.exe Command-Line Options for Windows XP
http://support.microsoft.com/default.aspx?scid=314853 

Customize the Windows Explorer Views in Windows XP
http://support.microsoft.com/default.aspx?scid=314853 

Have Windows Explorer Default to the %SystemRoot% Drive When Started:
http://support.microsoft.com/?kbid=257518 

HOW TO: Customize the Windows Explorer Views in Windows XP
http://support.microsoft.com/default.aspx?scid=kb;en-us;307856

 

posted on Wednesday, October 11, 2006 6:39 AM

Feedback

# re: Command Line Pointers for Windows Explorer 3/30/2007 8:48 PM daniel
Thanks very useful info!

# re: Command Line Pointers for Windows Explorer 4/2/2007 7:57 AM Murray
Daniel, glad you found the info useful. I use SlickRun non-stop during my day and the command line uses for it make it very easy to launch outlook, word, create new emails, contacts, meetings, text files, etc. I would suggest SlickRun to anyone who gets annoyed at making 4 clicks with a mouse to create an email. You can find SlickRun at http://www.bayden.com/SlickRun/1033/SlickRunHelp.htm

Great tool.

Have a good one.

~ Murray

# re: Command Line Pointers for Windows Explorer 4/11/2007 7:42 AM longgi
if i changed my document path in [my document]->property, this method wont work.

# re: Command Line Pointers for Windows Explorer 4/11/2007 8:38 AM Murray
Not sure what you are referring to here. Could you clarify and maybe I could help.

# re: Command Line Pointers for Windows Explorer 10/2/2007 6:57 PM TimmyT
Thank you so much, this information had enabled me to customise our printing setup almost perfectly,

Thanks Heaps.

# re: Command Line Pointers for Windows Explorer 9/24/2010 5:24 PM cliff
I would like to control the size and placement of the overall explorer window. It sometimes remembers but more often opens in the small default window.

# re: Command Line Pointers for Windows Explorer 2/3/2012 4:18 PM mz2k
Thank You.

Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification: