Jump to content

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


frew
 Share

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.

 

Link to comment
Share on other sites

This PC is not a path.

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

 

If @error Then
    MsgBox(262192, "", @ComputerName & " slaps " & @UserName & " around a bit with a large trout!")
EndIf

"Yeah yeah yeah patience, how long will that take?"  -Ed Gruberman

REAL search results  |  SciTE4AutoIt3 Editor Full Version

Link to comment
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

 

image.jpeg.9f1a974c98e9f77d824b358729b089b0.jpeg Chimp

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

Link to comment
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.

Link to comment
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.

Link to comment
Share on other sites

  • 2 years later...

This thread just caught my eye as I'm having the same problem. Anyone have a solution. There was no magic CLSID but I noticed what I think is a quirk.   The MY COMPUTER CLSID worked for FolderOpenDialog yet it didn't work for FileOpenDialog.  

Any other ideas?

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...