Skip to content

Commit

Permalink
Update EvalBat.bat
Browse files Browse the repository at this point in the history
Allow EvalBat.bat to be located on a different source drive than current directory from which calling script is run
  • Loading branch information
adisak committed Dec 13, 2022
1 parent 5f8fa45 commit df9b569
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/EvalBat.bat
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ if ""=="%EVALBAT_VERBOSE%" GOTO :SkipShowInputExpression

SET EVALBAT_RESULT=

REM cscript.exe /nologo "%~p0\EvalBat_vbs.vbs" "%*"
for /f "usebackq" %%t in (`cscript.exe /nologo "%~p0\EvalBat_vbs.vbs" "%*"`) do (
REM cscript.exe /nologo "%~dp0\EvalBat_vbs.vbs" "%*"
for /f "usebackq" %%t in (`cscript.exe /nologo "%~dp0\EvalBat_vbs.vbs" "%*"`) do (
SET EVALBAT_RESULT=%%t
)
REM echo Result: %EVALBAT_RESULT%

0 comments on commit df9b569

Please sign in to comment.