- , SET/P , .
: -)
- , .
@echo off
(
echo test
echo test
echo y
echo y
)>responses.temp
call sign_apks.bat <responses.temp
delete responses.temp
. ( ). , , .
, , .
@echo off
(
call echo test1
call echo test2
call echo y1
call echo y2
) | sign_apks.bat
- -
Enter job name: Enter key alias: Sign mobile? (y/n): Sign wear? (y/n):
"test1 "
"test2 "
"y1 "
"y2 "
, CALL SET/P . , . , CALL , script .
cmd.exe. , , :
C:\Windows\system32\cmd.exe /S /D /c" sign_apks.bat"
CALL - cmd.exe.
, . , CMD.EXE/C. CMD.EXE , . , . , - :
C:\Windows\system32\cmd.exe /S /D /c" ( call echo test & call echo test & call echo y & call echo y )"
, . . , ? , .
- . script, WriteArgs.bat, ECHO .
WriteArgs.bat
@echo off
:loop
if .%1 equ . exit /b
echo %1
shift /1
goto loop
script , :
WriteArgs.bat test test y y | sign_apks.bat
, , SET/P , . : -)
. , . , , , , - . , , - , .