Jump to content
Sign in to follow this  
frew

What's the path to "This PC" on Windows 10?

Recommended Posts

Hello,

Can someone please tell me what the path to "This PC" is?

I have a script that works fine to open folders with lines like this:

ShellExecute("C:\Program Files")

...but I don't know what path (or Macros?) to use to show all the drives at once, like when I click on the "This PC" icon shortcut.

Thanks.

 

Share this post


Link to post
Share on other sites

or also simply

ShellExecute("::{20D04FE0-3AEA-1069-A2D8-08002B30309D}")

have a look here for other folders : https://www.autoitscript.com/autoit3/docs/appendix/clsid.htm

or search for GUID shortcuts on google or (better) on https://duckduckgo.com/

Edited by Chimp
GUID

small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt....

Share this post


Link to post
Share on other sites
14 hours ago, alienclone said:

This PC is not a path.

a quick search in AutoIt for "list all drives" gave me the function DriveGetDrive.

 

This does not seem to open the window "This PC".

Not sure how to get that to do this.

Share this post


Link to post
Share on other sites
9 hours ago, Subz said:

You can use something like:

ShellExecute(@WindowsDir & "\explorer.exe", '/e,::{20d04fe0-3aea-1069-a2d8-08002b30309d}')

 

This one does open "This PC" windows, but forces Navigation pane to always be enabled it seems.

Share this post


Link to post
Share on other sites
8 hours ago, Chimp said:

or also simply

ShellExecute("::{20D04FE0-3AEA-1069-A2D8-08002B30309D}")

have a look here for other folders : https://www.autoitscript.com/autoit3/docs/appendix/clsid.htm

or search for GUID shortcuts on google or (better) on https://duckduckgo.com/

This does what I want. Opens "This PC" window,  and also allows Windows to remember

my view settings to have navigation pane disabled.

With a search for search for GUID shortcuts I noticed this page:

https://www.tenforums.com/tutorials/3123-clsid-key-guid-shortcuts-list-windows-10-a.html

Will explore these a bit.

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...