Sign in to follow this  
Followers 0
stilllearning

My Computer

7 posts in this topic

I can open 'My Computer' using: -

Run("explorer.exe /e,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}")

Can anyone tell me how to expand the path so that I can open a folder within 'My Computer'?

Run("explorer.exe /e,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\folder name") doesn't work

Share this post


Link to post
Share on other sites



Hello,

try::

Run("explorer.exe /e c:\windows") ;or path you wish to navigate to.

Thanks for that.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Thanks for that.

#cs @OP
 Doh! stupid me... here are some. i Did not read your post properly
#ce
;   CONTROL PANEL
RUN("explorer.exe /e,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\::{21EC2020-3AEA-1069-A2DD-08002B30309D}")
;   RECYCLE BIN
RUN("explorer.exe /e,::{645FF040-5081-101B-9F08-00AA002F954E}")
;   MY NETWORK PLACES
RUN("explorer.exe /e,::{208D2C60-3AEA-1069-A2D7-08002B30309D}")
;   PRINTERS
RUN("explorer.exe /e,::{2227A280-3AEA-1069-A2DE-08002B30309D}")oÝ÷ ØÖN¬Â䱩l¡«­¢+ÙIU8 ÌäíáÁ±½ÉȹὰèéìÈÁÀÑÀ´Í´ÄÀØäµÉà´ÀàÀÀÉÌÀÌÀåôÀäÈìÅÕ½Ðíé]%9=]LÅÕ½ÐìÌäì¤
Edited by Mobius

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Improved ca be done in one line only without using the CLSID codes.

$path = "C:\Windows"
$path_2 = "D:\"
Run("explorer.exe " & $path, "", @SW_MAXIMIZE)
Run("explorer.exe " & $path_2, "", @SW_MINIMIZE)

check your help file for CLSID List.

Edited by Cw2K1

Enjoy the complexity.Feel the power of simplicity.

Share this post


Link to post
Share on other sites

Could always just use ShellExecute("C:\WINDOWS")


# MY LOVE FOR YOU... IS LIKE A TRUCK- #

Share this post


Link to post
Share on other sites

Could always just use ShellExecute("C:\WINDOWS")

Or eliminate the hard-wired folder using @WindowsDir

Windows could be installed on H: :mellow:

Share this post


Link to post
Share on other sites

Another way to skin the cat without using the CLSID is to use

explorer /select,C:

should open MyComputer with the side panel(if that's what the user's settings indicate)

and C: drive highlighted.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0