It is currently April 19th, 2024, 10:33 pm

Change to This PC in Windows 10

Tips and Tricks from the Rainmeter Community
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Change to This PC in Windows 10

Post by jsmorley »

In Windows 10, there has been a change to how "This PC" (The artist formerly known as My Computer) is opened from the Windows command line, and thus changes how you might want to access it in a skin, say in a dock or launcher.

There used to be a Windows shell command that would open this functionality (it is opened as if it is a "folder", but it really isn't.)

A shell command of:

MyComputerFolder

Or a CLSID identifier of:

::{20d04fe0-3aea-1069-a2d8-08002b30309d}

So you might have used:

LeftMouseUpAction=["shell:MyComputerFolder"]

or:

LeftMouseUpAction=["shell:::{20d04fe0-3aea-1069-a2d8-08002b30309d}"]

This no longer works, and instead opens the first actual "folder" in the This PC functionality, which is "Desktop".

To have a command actually open explorer with This PC as the active pane, you need to use:

LeftMouseUpAction=["Explorer" /select,This PC]

This might be some hitch in the preview builds of Windows 10, and might be changed or "corrected" before the launch. However, it might be a real change due to the addition of the "Quick Access" functionality in Windows 10 that replaces the "Favorites" folder. I will keep an eye on it and if it does change, will revisit the matter here.
User avatar
StArL0rd84
Posts: 424
Joined: February 8th, 2015, 10:07 pm
Location: EU, Denmark.

Re: Change to This PC in Windows 10

Post by StArL0rd84 »

Hey morley.
Got Win10 and trying to open This PC in RainFile.
(Default folder)

LeftMouseUpAction=
["#RainFile#" "File" "Variables" "Lpath20" "#@#Var\Var.inc" ""Explorer" /select,This PC" "DPNE"]


I can confirm your shortcut works normally otherwise.
But RainFile just defaults to the last used folder.
I have it set to C:\ now, so the user could just go up one lvl and pick another drive from there if necessary.
So no big deal.
Just annoying Win 10 got so different under the hood like that.
([mWorkTime] = 1 ? #Work# : ([mEnergyLoss:%] >= 70% ? #Chillmode# : </>))
User avatar
Mor3bane
Posts: 943
Joined: May 7th, 2016, 7:32 am

Re: Change to This PC in Windows 10

Post by Mor3bane »

this works fine for "This PC"

"%windir%\explorer.exe"
My DevArt Gallery

There are many ways to be different - there is only one way to be yourself - be amazing at it

The law of averages says what it means; even if you get everything right, you will get something wrong. Therefore; self managing error trapping initiates another set of averages - amongst the errors, some of them will not be errors, instead those instances will appear to be "luck". One cannot complain of the 'appearance' of 'infinite regress of causation', even if it does not have a predictable pattern, only that it requires luck to achieve.
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Change to This PC in Windows 10

Post by jsmorley »

Mor3bane wrote:this works fine for "This PC"

"%windir%\explorer.exe"
Only if you do this first:

http://www.digitalcitizen.life/how-set-start-location-file-explorer-windows-10
1.jpg
By default Windows 10 will open File Explorer to "Quck Access", not "This PC".

That's why I think LeftMouseUpAction=["Explorer" /select,This PC] is the better approach, as it doesn't require the end-user of your skin to have any particular setting for that.
You do not have the required permissions to view the files attached to this post.
User avatar
StArL0rd84
Posts: 424
Joined: February 8th, 2015, 10:07 pm
Location: EU, Denmark.

Re: Change to This PC in Windows 10

Post by StArL0rd84 »

Shortcut to 'This PC' for RainFile, in Windows 10.

Was looking for a way to get Rainfile use This PC as the default folder to open.
While a lot of the shortcuts in this thread works fine in a normal setting like a bang, they
would not play nice with RainFile.

Found a way to do it, but it required me to use CMD and apply attributes to a "folder" using a shortcut with MY username in it.
So it only works on my system. And ONLY if the shortcut/folder is not moved/copied to another location.
So while this solution works for me, i cannot release a skin with it.

I used this guide to create it:
http://graniteportable.com/how-to-customize-a-folder-using-desktop-ini/

I guess ill keep looking for a solution.

;///////////////////////////////////////////////////////////////////////////////////////////////////////

EDIT: I think i found a way to do it, so it can be released with a skin!

1. Right click an empty space in a folder or desktop.
2. Click: New > Shortcut.
3. Paste in %windir%\explorer.exe " inside the empty box.
4. Click next and name it My PC
5. Point to it in your skin.

Code: Select all

[Variables]
Var=#@#Variables\Variables.inc
RainFile=#@#Addons\RainFile\RainFile.exe
Fpath=C:\Users\*UserName*\Documents\Rainmeter\Skins

LeftMouseUpAction=["#RainFile#" "Folder" "Variables" "Fpath" "#Var#" "#@#\Shortcuts\This PC"]
Last edited by StArL0rd84 on September 10th, 2016, 1:52 pm, edited 1 time in total.
([mWorkTime] = 1 ? #Work# : ([mEnergyLoss:%] >= 70% ? #Chillmode# : </>))
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Change to This PC in Windows 10

Post by jsmorley »

StArL0rd84 wrote:Shortcut to 'This PC' for RainFile, in Windows 10.

Was looking for a way to get Rainfile use This PC as the default folder to open.
While a lot of the shortcuts in this thread works fine in a normal setting like a bang, they
would not play nice with RainFile.

Found a way to do it, but it required me to use CMD and apply attributes to a "folder" using a shortcut with MY username in it.
So it only works on my system. And ONLY if the shortcut/folder is not moved/copied to another location.
So while this solution works for me, i cannot release a skin with it.

I used this guide to create it:
http://graniteportable.com/how-to-customize-a-folder-using-desktop-ini/

I guess ill keep looking for a solution.

;///////////////////////////////////////////////////////////////////////////////////////////////////////

EDIT: Found a way to do it, so it can be released with a skin!

1. Right click an empty space in a folder or desktop.
2. Click: New > Shortcut.
3. Paste in %windir%\explorer.exe " inside the empty box.
4. Click next and name it My PC
5. Point to it in your skin.

Code: Select all

[Variables]
Var=#@#Variables\Variables.inc
RainFile=#@#Addons\RainFile\RainFile.exe
Fpath=C:\Users\*UserName*\Documents\Rainmeter\Skins

LeftMouseUpAction=["#RainFile#" "Folder" "Variables" "Fpath" "#Var#" "#@#\Shortcuts\This PC"]
That's because "This PC" is not a folder....