Launch Command Prompt & ASP.Net 2.0 Web Server on any Folder

Here are a couple of quick registry hacks to quickly launch Command Prompt and ASP.Net 2.0 Web Server on right-click action of any folder. Particularly useful for ASP.Net developers and testers using command-line tools and  managing multiple asp.net web sites. Thanks to Faisal for the tips.

Simply paste the below text in notepad and save as .reg file, and double-click to execute and save the changes to the registry (You must have admin rights to do so).

Save this as “Start Web Server Here.reg”

 Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Folder\shell\VS2005 WebServer]
@=”ASP.NET 2.0 Web Server Here”

[HKEY_CLASSES_ROOT\Folder\shell\VS2005 WebServer\command]
@=”C:\\Windows\\Microsoft.NET\\Framework\\v2.0.50727\\Webdev.WebServer.exe /port:80 /path:\”%1\” /vpath:\”/\””

And save this one as “Command Prompt Here.reg”

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\CommandPrompt]
@=”Command Prompt Here”

[HKEY_CLASSES_ROOT\Directory\shell\CommandPrompt\command]
@=”cmd.exe /k cd \”%1\””

Using these examples, you can add your own custom actions to context menu for folder or files.

Added: Some of my colleagues were having difficulties with the copy-paste method, due to web encoding of some characters in the above registry dump. So i decided to upload a file:

File Attachment: RegistryHacks.zip (717 bytes)

cheers,

// ch3ckmat3

2 thoughts on “Launch Command Prompt & ASP.Net 2.0 Web Server on any Folder”

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.