Add visual studio command prompt to windows explorer context menu

copyright (C) qingfeng Xia 2011-2020 CC-BY-NC 4.0

Recently relised visual studio build tool (with cmake support), enables building windows c++ project without GUI. It is essential to accelerate the testing of cross-platform program.

It is convenient and decent to add Bash (WSL) and visual studio command line tool

1. git clone
2. cd source & mkdir build & cd build & cmake .. # cmake to generate msbuild/makefile
3. nmake # to compile

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\VSTPrompt]
@="open VSTool X64 prompt here"
"Icon"="cmd.exe"

[HKEY_CLASSES_ROOT\Directory\Background\shell\VSTPrompt\command]
@="cmd.exe /s /k  call \"C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Auxiliary\\Build\\vcvars64.bat\" & pushd \"%V\" "

[HKEY_CLASSES_ROOT\Directory\Background\shell\bash]
@="Open Bash in this folder"
"Icon"="%USERPROFILE%\\AppData\\Local\\lxss\\bash.ico"

[HKEY_CLASSES_ROOT\Directory\Background\shell\bash\command]
@="cmd.exe /c cd /d \"%V\" && bash.exe"



CC-BY-NC 4.0 licensed free for non-commercial usage
Author: Qingfeng XIA
copyright (C) 2011-2020
http://www.iesensor.com
please keep the original link in your reference.
http://www.iesensor.com/blog/2017/11/05/add-visual-studio-command-prompt-to-windows-explorer-context-menu/
This entry was posted in Uncategorized. Bookmark the permalink.