Shell function for opening windows explorer

R

racudd

Here's a basic question:
I'm using Shell "explorer", vbNormalFocus to open windows explorer, and
when explorer opens it is pointing toward My Documents. I would like
for it to point to My Computer instead, or possibly one of the other
drives. What do I need to add?
 
P

PaulD

Couple of options
temp = Shell("EXPLORER.EXE /n,/e,/select,C:\", vbNormalFocus)
will select C: on right but still have tree available on left

temp = Shell("EXPLORER.EXE /n,/e,/root,C:\", vbNormalFocus)
will force C to the root level of tree on left and show contents of C on
right

For more info on explorer switches check out
http://support.microsoft.com/default.aspx?scid=kb;en-us;307856&sd=tech

Paul D

message :
: Here's a basic question:
: I'm using Shell "explorer", vbNormalFocus to open windows explorer, and
: when explorer opens it is pointing toward My Documents. I would like
: for it to point to My Computer instead, or possibly one of the other
: drives. What do I need to add?
:
:
: --
: racudd
: ------------------------------------------------------------------------
: racudd's Profile:
http://www.excelforum.com/member.php?action=getinfo&userid=33508
: View this thread: http://www.excelforum.com/showthread.php?threadid=560105
:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top