Skip to content

Instantly share code, notes, and snippets.

@wallymathieu
Created February 6, 2015 09:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wallymathieu/ccf66929247cbf525e66 to your computer and use it in GitHub Desktop.
Save wallymathieu/ccf66929247cbf525e66 to your computer and use it in GitHub Desktop.
;
; "CMD Prompt Here" PowerToy
;
; Copyright 1996 Microsoft Corporation
;
; Modified to launch VS.NET 2005 command prompt 5/6/03 MG
[version]
signature="$CHICAGO$"
[VSNet2012CmdHereInstall]
CopyFiles = VSNet2012CmdHere.Files.Inf
AddReg = VSNet2012CmdHere.Reg
[DefaultInstall]
CopyFiles = VSNet2012CmdHere.Files.Inf
AddReg = VSNet2012CmdHere.Reg
[DefaultUnInstall]
DelFiles = VSNet2012CmdHere.Files.Inf
DelReg = VSNet2012CmdHere.Reg
[SourceDisksNames]
55="VS .NET 2012 CMD Prompt Here","",1
[SourceDisksFiles]
VSNet2012CmdHere.INF=55
[DestinationDirs]
VSNet2012CmdHere.Files.Inf = 17
[VSNet2012CmdHere.Files.Inf]
VSNet2012CmdHere.INF
[VSNet2012CmdHere.Reg]
HKLM,%UDHERE%,DisplayName,,"%VSNet2012CmdHereName%"
HKLM,%UDHERE%,UninstallString,,"rundll32.exe syssetup.dll,SetupInfObjectInstallAction DefaultUninstall 132 %17%\VSNet2012CmdHere.inf"
HKCR,Directory\Shell\VSNet2012CmdHere,,,"%VSNet2012CmdHereAccel%"
HKCR,Directory\Shell\VSNet2012CmdHere\command,,,"%11%\cmd.exe /k cd ""%1"" && ""C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\vsvars32.bat"""
HKCR,Drive\Shell\VSNet2012CmdHere,,,"%VSNet2012CmdHereAccel%"
HKCR,Drive\Shell\VSNet2012CmdHere\command,,,"%11%\cmd.exe /k cd ""%1"""
[Strings]
VSNet2012CmdHereName="VS.NET 2012 Command Prompt Here PowerToy"
VSNet2012CmdHereAccel="VS.NET &2012 CMD Prompt Here"
UDHERE="Software\Microsoft\Windows\CurrentVersion\Uninstall\VSNet2012CmdHere"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment