Fix setting variables in windows .cmd

This commit is contained in:
RimeBeliskner 2019-08-10 22:30:21 +03:00
parent 0bf9620eb3
commit 2402927423
2 changed files with 4 additions and 4 deletions

View File

@ -1,9 +1,9 @@
REM Prepare the environment for ZX and launch it REM Prepare the environment for ZX and launch it
set ZOMP_DIR="%LOCALAPPDATA%\zomp" set ZOMP_DIR="%LOCALAPPDATA%\zomp"
set VERSION=<"%ZOMP_DIR%\etc\version.txt" set /P VERSION=<"%ZOMP_DIR%\etc\version.txt"
set ZX_DIR="%ZOMP_DIR%\lib\otpr\zx\%VERSION%" set ZX_DIR="%ZOMP_DIR%\lib\otpr\zx\%VERSION%"
pushd "%ZX_DIR%" pushd %ZX_DIR%
escript.exe make_zx escript.exe make_zx
popd popd
erl.exe -pa "%ZX_DIR%/ebin" -run zx run "%*" erl.exe -pa "%ZX_DIR%/ebin" -run zx run "%*"

View File

@ -1,9 +1,9 @@
REM Prepare the environment for ZX and launch it REM Prepare the environment for ZX and launch it
set ZOMP_DIR="%LOCALAPPDATA%\zomp" set ZOMP_DIR="%LOCALAPPDATA%\zomp"
set VERSION=<"%ZOMP_DIR%\etc\version.txt" set /P VERSION=<"%ZOMP_DIR%\etc\version.txt"
set ZX_DIR="%ZOMP_DIR%\lib\otpr\zx\%VERSION%" set ZX_DIR="%ZOMP_DIR%\lib\otpr\zx\%VERSION%"
pushd "%ZX_DIR%" pushd %ZX_DIR%
escript.exe make_zx escript.exe make_zx
popd popd
erl.exe -pa "%ZX_DIR%/ebin" -run zx run "%*" erl.exe -pa "%ZX_DIR%/ebin" -run zx run "%*"