0
나는 도스의 배치 파일을 짓고 있어요 (오히려 또는 명령 배치 파일) 내에서, 박쥐 파일 한 후 실행 파일을 실행 : 어떤 이유 다음과 같습니다 내 배치 파일
@echo off
set REGKEY=HKLM\Software\Adonix\X3RUNTIME\x3v6
set REGVAL=ADXDIR
REM query the value. pipe it through findstr in order to find the matching line that has the value. only grab token 3 and the remainder of the line. %%b is what we are interested in here.
set VALUE=
for /f "tokens=2,*" %%a in ('reg query %REGKEY% /v %REGVAL% ^| findstr %REGVAL%') do (
set myDir=%%b
)
%myDir%\bin\env.bat
Adonix.exe -v
pause
,이 스크립트
%myDir%\bin\env.bat
행 다음에 실행을 중지합니다. 이유가 확실하지 않습니다.
adonix -v
행을 실행하고 싶지만 그렇지 않습니다. 실제로 env.bat
파일 바로 뒤에 echo
을 넣으면 여전히 실행되지 않습니다.
env.bat
파일을 실행하는 방법 (경로에 SET
명령을 간단하게 실행 함)이 설정 명령을 수행 한 후 adonix.exe
을 실행합니까? env.bat
이후에 광고 게재가 중단되는 이유는 무엇입니까?
해결 방법 % myDir % \ bin \ env.bat를 호출합니다. –