Thursday, July 19, 2012

Visual studio command here.


Name the file : vsnet2010cmdhere.inf





Code Snippet






  1. ;


  2. ; "CMD Prompt Here" PowerToy


  3. ;


  4. ; Copyright 1996 Microsoft Corporation


  5. ;


  6.  


  7. [version]


  8. signature="$CHICAGO$"


  9.  


  10. [VSNet2010CmdHereInstall]


  11. CopyFiles = VSNet2010CmdHere.Files.Inf


  12. AddReg    = VSNet2010CmdHere.Reg


  13.  


  14. [DefaultInstall]


  15. CopyFiles = VSNet2010CmdHere.Files.Inf


  16. AddReg    = VSNet2010CmdHere.Reg


  17.  


  18. [DefaultUnInstall]


  19. DelFiles  = VSNet2010CmdHere.Files.Inf


  20. DelReg    = VSNet2010CmdHere.Reg


  21.  


  22. [SourceDisksNames]


  23. 55="VS 2010 CMD Prompt Here","",1


  24.  


  25. [SourceDisksFiles]


  26. VSNet2010CmdHere.INF=55


  27.  


  28. [DestinationDirs]


  29. VSNet2010CmdHere.Files.Inf = 17


  30.  


  31. [VSNet2010CmdHere.Files.Inf]


  32. VSNet2010CmdHere.INF


  33.  


  34. [VSNet2010CmdHere.Reg]


  35. HKLM,%UDHERE%,DisplayName,,"%VSNet2010CmdHereName%"


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


  37. HKCR,Directory\Shell\VSNet2010CmdHere,,,"%VSNet2010CmdHereAccel%"


  38. HKCR,Directory\Shell\VSNet2010CmdHere\command,,,"%11%\cmd.exe /k cd ""%1"" && ""C:\Program Files\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"" x86"


  39. HKCR,Drive\Shell\VSNet2010CmdHere,,,"%VSNet2010CmdHereAccel%"


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


  41.  


  42. [Strings]


  43. VSNet2010CmdHereName="VS 2010 Command Prompt Here PowerToy"


  44. VSNet2010CmdHereAccel="VS 20&10 CMD Prompt Here"


  45. UDHERE="Software\Microsoft\Windows\CurrentVersion\Uninstall\VSNet2010CmdHere"





Below is for 64 bit machines.
Code Snippet
  1. ;
  2. ; "CMD Prompt Here" PowerToy
  3. ;
  4. ; Copyright 1996 Microsoft Corporation
  5. ;
  6.  
  7. [version]
  8. signature="$CHICAGO$"
  9.  
  10. [VSNet2010CmdHereInstall]
  11. CopyFiles = VSNet2010CmdHere.Files.Inf
  12. AddReg    = VSNet2010CmdHere.Reg
  13.  
  14. [DefaultInstall]
  15. CopyFiles = VSNet2010CmdHere.Files.Inf
  16. AddReg    = VSNet2010CmdHere.Reg
  17.  
  18. [DefaultUnInstall]
  19. DelFiles  = VSNet2010CmdHere.Files.Inf
  20. DelReg    = VSNet2010CmdHere.Reg
  21.  
  22. [SourceDisksNames]
  23. 55="VS 2010 CMD Prompt Here","",1
  24.  
  25. [SourceDisksFiles]
  26. VSNet2010CmdHere.INF=55
  27.  
  28. [DestinationDirs]
  29. VSNet2010CmdHere.Files.Inf = 17
  30.  
  31. [VSNet2010CmdHere.Files.Inf]
  32. VSNet2010CmdHere.INF
  33.  
  34. [VSNet2010CmdHere.Reg]
  35. HKLM,%UDHERE%,DisplayName,,"%VSNet2010CmdHereName%"
  36. HKLM,%UDHERE%,UninstallString,,"rundll32.exe syssetup.dll,SetupInfObjectInstallAction DefaultUninstall 132 %17%\VSNet2010CmdHere.inf"
  37. HKCR,Directory\Shell\VSNet2010CmdHere,,,"%VSNet2010CmdHereAccel%"
  38. HKCR,Directory\Shell\VSNet2010CmdHere\command,,,"%11%\cmd.exe /k cd ""%1"" && ""C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"" x86"
  39. HKCR,Drive\Shell\VSNet2010CmdHere,,,"%VSNet2010CmdHereAccel%"
  40. HKCR,Drive\Shell\VSNet2010CmdHere\command,,,"%11%\cmd.exe /k cd ""%1"""
  41.  
  42. [Strings]
  43. VSNet2010CmdHereName="VS 2010 Command Prompt Here PowerToy"
  44. VSNet2010CmdHereAccel="VS 20&10 CMD Prompt Here"
  45. UDHERE="Software\Microsoft\Windows\CurrentVersion\Uninstall\VSNet2010CmdHere"
Save the file as mentioned above and then right click on the file and click on install. Generally before blinding doing stuff you should read the code and install only if you are comfortable with it.

No comments:

Post a Comment