What is the path of "my computer" folder on windows?

My Computer is a virtual shell folder that doesn't correspond to any file system directory. There's no file system path that would correspond to that location.

Fortunately, file dialogs do speak "shellese", so you can use the CLSID (not to be confused with the GUID KNOWNFOLDERID or the CSIDL) of the shell folder. Sample in C# Winforms, but really, the only important part is the ::CLSID):

var ofd = new OpenFileDialog();
ofd.InitialDirectory = "::{20D04FE0-3AEA-1069-A2D8-08002B30309D}";
ofd.ShowDialog();

Disclaimer: I couldn't find any relevant documentation for the virtual folder CLSID, or this behaviour of the File dialog. So this is most likely not contractual, and could possibly change in future versions of Windows.


In the explorer, in the search bar copy the address of

This PC

and then select the text

This PC

and paste. Normally we get the

Ce PC ":: {CLSID}"

and then just copy

:: {CLSID}

and paste it wherever we want.