bat demoとbat呼び出しjava受信パラメータ取得
725 ワード
@echo off
echo :%~d0
echo :%~dp0
echo :%~f0
echo :%~sdp0
echo CMD :%cd%
set current_path=%cd%
echo %current_path%
@echo off
rem Get remaining unshifted command line arguments and save them in the
set CMD_LINE_ARGS=
:setArgs
if ""%1""=="""" goto doneSetArgs
set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
shift
goto setArgs
:doneSetArgs
java -jar "E:\androidtool\ApktoolGui v2.0 Final\Bin\apktool.jar" %CMD_LINE_ARGS%
@echo off
if "%PATH_BASE%" == "" set PATH_BASE=%PATH%
set PATH=%CD%;%PATH_BASE%;
java -jar "%~dp0\apktool.jar" %1 %2 %3 %4 %5 %6 %7 %8 %9