To create this, just download the inf file for 2005 from Scott Hansleman’s blog post here…
http://www.hanselman.com/blog/VisualStudioCommandPromptHereAndSearchUnknownFileExtensions.aspx
and then alter it in notepad for all references to 2005 to 2008, and the path to the vsvars32.bat.
Then any folder that you select you’ll see a shortcut to open a visual studio command prompt at that location.
The same should work for 2010 as well by the way!
(Alternatively just create a Vs2008CommandPrompt.inf plain text file, and cut and paste the following text into it).
;
; "CMD Prompt Here" PowerToy
;
; Copyright 1996 Microsoft Corporation
;
; Modified to launch VS.NET 2008 command prompt 5/6/03 MG
[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 (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"