shift+enter does not work on bat files
Posted: 2018-07-02, 11:01 UTC
I have a 'msbuild' script in a file called 'domake.bat'.
If I press Enter while the cursor is on that file, the file is executed correctly and the msbuild process is successful.
However, if I press 'Shift+Enter', msbuild fails - some files THAT ARE THERE are not found. So, somehow the msbuild does not receive something (maybe current path?) correctly from Total Commander!
The (domake.bat) file content is:
----------------------------------------------
@echo off
REM set environment variables
call \entwicklung\set_build_paths.bat
REM change current dir to project group dir
PUSHD %~p0\prjtest
REM compile with cleaning up using passed arguments
%MSBUILD% %* /t:Clean;Build CwmGroup.groupproj
REM restore current dir
POPD
----------------------------------------------
If I press Enter while the cursor is on that file, the file is executed correctly and the msbuild process is successful.
However, if I press 'Shift+Enter', msbuild fails - some files THAT ARE THERE are not found. So, somehow the msbuild does not receive something (maybe current path?) correctly from Total Commander!
The (domake.bat) file content is:
----------------------------------------------
@echo off
REM set environment variables
call \entwicklung\set_build_paths.bat
REM change current dir to project group dir
PUSHD %~p0\prjtest
REM compile with cleaning up using passed arguments
%MSBUILD% %* /t:Clean;Build CwmGroup.groupproj
REM restore current dir
POPD
----------------------------------------------