One of the first things I do when setting up a new system is to add the ability to right click on any folder and have a new command prompt with all of the Visual Studio environment variables setup properly. I have used the one referenced by Scott Hanselman for Visual Studio 2005 but with Visual Studio 2008 and Vista 64 installed I had to make a few tweaks to the file and making it available.
The new command file looks like this:
; ; "CMD Prompt Here" PowerToy ; ; Copyright 1996 Microsoft Corporation ; ; Modified to launch VS.NET 2008 command prompt 8/26/2008 RB [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"" && ""D:\Program Files (x86)\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"
The real changes were the new location of Visual Studio, in particular the fact that the location under Program Files is actually Program Files (x86). It should be noted that my Visual Studio installation is on my D:, not the default of C:. This should be an easy change for anyone using this file.
Download the new INF – vsnet2008cmdhere.inf
I hope it helps out.
thank u
thank u