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

Require.js + TypeError: Backbone is undefined after optimization

javascript scala backbone.js playframework requirejs

Backbone app works fine pre-optimized. After using r.js (with almond), I succesfully generate a single output file that always seems to throw the 'TypeError: Backbone is undefined' error in the m...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.