Win: run script after executing the VisualStudio-environment-command
Written by marcelpetrick on July 11, 2019
Problem: our CMakeLists.txt contained one specific variable which is just set via the VisualStudio-command-prompt. But I did not want to start that cmd, then execute our “start IDE”-script from there. Naa, too much clicks 😉
Copy this as bat-file to the directory where the qtcreator.bat would be.
rem inspiration from https://www.codeproject.com/Questions/541856/Batchplusfile-3aplusOpenpluscmd-2cplusrunplusVSplu
set workingDir=C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\Tools\
rem execute the VS build enviroment
rem go back to current directory
cd /d %~dp0
cmd replacement: cmder
Written by marcelpetrick on March 29, 2019
Sometimes you have to call some batch-files with spoecific windows-tools, so a bash is not helpful on Win.
A colleague recommended cmdr, which is quite nice and fine.
Suits my needs 🙂