Philip Hendry's Blog

Adding a Windows Explorer Context Menu for the Web Development Server

Dec 9, 2009 • Tip, Windows, Windows 7 • Less than a minute read

I wanted to be able to launch a single folder – the results of an ASP.NET WebForms build - in a Web Development Server without having to run up Visual Studio. The result looks like this :


And the solution… add the following to the registry :

Windows Registry Editor Version 5.00

@="Launch in WebDev Server"

@="\"c:\\windows\\\\framework\\v2.0.50727\\WebDev.WebServer.exe\" /port:54321 /path:\"%V\""

I would like to change that so it uses %windir% instead of C:\Windows but I must have got the syntax wrong because Explorer wouldn’t recognise the command. I’d also like to add an option for .aspx files that launches the parent folder in WebDev then launches an explorer window for the selected aspx file.

One last thing… this isn’t launching the server with any elevated permissions. If that’s required then you’ll need a tool such as Wintellects Elevate command which can be downloaded with full C# source code.

Post by: Philip Hendry