Saturday 1 March 2008

"Open Command Here" for VS 2005 and VS 2008


Scott has inf files which allow you to add the "Open Cmd Here" prompt to your windows explorer context menu. You just have to save the text below as an .inf file, right click and select "install".



One of my colleagues Andrew Weaver (aka Reddog) has updated this .inf file slightly to point to default 2008 file paths :




;

; "CMD Prompt Here" PowerToy

;

; Copyright 1996 Microsoft Corporation

;

; Modified to launch VS.NET 2005 command prompt 5/6/03 MG

; Modified to launch VS.NET 2008 command prompt 22/11/07 AW

 

[version]

signature="$CHICAGO$"

 

[VSNet2008CmdHereInstall]

CopyFiles = VSNet2008CmdHere.Files.Inf

AddReg    = VSNet2008CmdHere.Reg

 

[DefaultInstall]

CopyFiles = VSNet2008CmdHere.Files.Inf

AddReg    = VSNet2008CmdHere.Reg

 

[DefaultUnInstall]

DelFiles  = VSNet2008CmdHere.Files.Inf

DelReg    = VSNet2008CmdHere.Reg

 

[SourceDisksNames]

55="VS .NET 2008 CMD Prompt Here","",1

 

[SourceDisksFiles]

VSNet2008CmdHere.INF=55

 

[DestinationDirs]

VSNet2008CmdHere.Files.Inf = 17

 

[VSNet2008CmdHere.Files.Inf]

VSNet2008CmdHere.INF

 

[VSNet2008CmdHere.Reg]

HKLM,%UDHERE%,DisplayName,,"%VSNet2008CmdHereName%"

HKLM,%UDHERE%,UninstallString,,"rundll32.exe syssetup.dll,SetupInfObjectInstallAction DefaultUninstall 132 %17%\VSNet2008CmdHere.inf"

HKCR,Directory\Shell\VSNet2008CmdHere,,,"%VSNet2008CmdHereAccel%"

HKCR,Directory\Shell\VSNet2008CmdHere\command,,,"%11%\cmd.exe /k cd ""%1"" && ""C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\vsvars32.bat"""

HKCR,Drive\Shell\VSNet2008CmdHere,,,"%VSNet2008CmdHereAccel%"

HKCR,Drive\Shell\VSNet2008CmdHere\command,,,"%11%\cmd.exe /k cd ""%1"""

 

[Strings]

VSNet2008CmdHereName="VS.NET 2008 Command Prompt Here PowerToy"

VSNet2008CmdHereAccel="VS.NET &2008 CMD Prompt Here"

UDHERE="Software\Microsoft\Windows\CurrentVersion\Uninstall\VSNet2008CmdHere"


No comments: