Batch
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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
@echo off 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\ set vs=VsDevCmd.bat rem execute the VS build enviroment cd %workingDir% call %vs% rem go back to current directory cd /d %~dp0 qtcreator.bat |
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 🙂