Hello,
I know that "MyComputer/Computer/This computer is not a physical folder, but how can it be accessed programatically?
Thanks.
Lennox
Hello,
I know that "MyComputer/Computer/This computer is not a physical folder, but how can it be accessed programatically?
Thanks.
Lennox
[quote=223174:@Lennox Jacob]Hello,
I know that "MyComputer/Computer/This computer is not a physical folder, but how can it be accessed programatically?
Thanks.
Lennox[/quote]
It is in fact not a folder but a program that is located in C:\Windows\Explorer.exe.
Thanks Michel,
That program opens a folder called “Libraries”.
What I am referring to, on Windows 7, is Start/Computer, if that is clicked a window opens which gives a display with all Hard Drives and Devices with Removable Storage… That is what I want to do programatically.
I saw this explorer.exe /e,::{20D04FE0-3AEA-1069-A2D8-08002B30309D} but I do not know how to do that in Xojo.
Any ideas, seems like a really tough one.
Thanks.
Lennox
[quote=223181:@Lennox Jacob]Thanks Michel,
That program opens a folder called “Libraries”.
What I am referring to, on Windows 7, is Start/Computer, if that is clicked a window opens which gives a display with all Hard Drives and Devices with Removable Storage… That is what I want to do programatically.
I saw this explorer.exe /e,::{20D04FE0-3AEA-1069-A2D8-08002B30309D} but I do not know how to do that in Xojo.
Any ideas, seems like a really tough one.
Thanks.
Lennox[/quote]
Looks like you will have to check http://documentation.xojo.com/index.php/Volume
The first example on that page lists all mounted drives.
Thanks Michel,
I found this link very useful…
http://www.tekrevue.com/tip/configure-windows-10-file-explorer-this-pc-view/
Lennox
[quote=223181:@Lennox Jacob]
I saw this explorer.exe /e,::{20D04FE0-3AEA-1069-A2D8-08002B30309D} but I do not know how to do that in Xojo.[/quote]
This is a command-line, use the Shell class to execute it:
Dim sh As New Shell
sh.Execute("explorer.exe /e,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}")
Since it’s not a real path, but a collection of disparate information, you will have to collect that info yourself from the various sources. What exactly are you trying to accomplish? You may not need all of it.
Those are called “Shell folders” or “special folders” and you have to call them via the shell execute. Each one has its own GUID, like those long strings of hexadecimal numbers.
But you can also list the contents of special folders, this is very useful.
Check this out:
Shell path functions
Thanks for all the input.
Dim sh As New Shell
sh.Execute(“explorer.exe /e,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}”)
… works great.
It’s a file/folder/app launcher I am using it for.
Thanks again.
Lennox