Open shell locations with c#

The code listed here does not open the file history in C#:

Process.Start("::{F6B6E965-E9B2-444B-9286-10C9152EDBC5}");

Where is the problem? It says the path was not found.

Running the following with Windows "Run" opens the files history correctly:

shell:::{F6B6E965-E9B2-444B-9286-10C9152EDBC5}

Answers


There's two problems here. The target platform and the command.

With Windows 8 it works for me

It only works on Windows 8 because it's a new feature in Windows 8. Previous versions don't have anything mapped to that GUID.

eg if you try using something which is supported in previous versions like the classic 'god mode':

shell:::{ED7BA470-8E54-465E-825C-99712043E01C}

works fine,

shell:::{F6B6E965-E9B2-444B-9286-10C9152EDBC5}

will give you an error message.

Secondly, you're leaving out the shell::: prefix when you call Process.Start(). It should look like:

Process.Start("shell:::{F6B6E965-E9B2-444B-9286-10C9152EDBC5}");

Need Your Help

Splash screen while loading a url in a webview in android app

android android-activity webview screen splash

I've got an app, that has 2 activity, the first one launch the second to load a url into a webview.

Replacing Do ... While Loops

php curl loops

I have the following piece of code taken from the PHP manual on the curl_multi_* entries: