How to enable “Open Developer command prompt here” in Windows Explorer

In Windows Explorer you can open a command prompt from any directory by Shift-Right-Click on any directory.

You can make that command prompt behavie like the Visual Studio Command Prompt (and have access to all usual developer utilities like tf.exe, sn.exe etc …).

Create file D:\Projects\DevCmd.bat :

@echo off
pushd “%1”
title Developer Command Prompt
call “C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\VsDevCmd.bat”

Merge into your registry the following .reg file

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\cmd\command]
@=”cmd /s /k d:\\projects\\devcmd.bat \”%V\””

[HKEY_CLASSES_ROOT\Directory\Background\shell\cmd\command]
@=”cmd /s /k d:\\projects\\devcmd.bat \”%V\””

[HKEY_CLASSES_ROOT\Drive\shell\cmd\command]
@=”cmd /s /k d:\\projects\\devcmd.bat \”%V\””

Log off, log on and you are good to go

Leave a Reply