For anyone that cares, I wrote this batch script for executing apktool in Windows.
Code:
@echo off
set APKTOOL_ERROR=
if not defined APKTOOLVER set APKTOOLVER=1.4.7
java -Xmx512m -jar "%~dp0android\apktool_%APKTOOLVER%.jar" %*
if errorlevel 1 set APKTOOL_ERROR=%ErrorLevel%
if [%1]==[] call :help
if [%1]==[--help] call :help
if [%1]==[-?] call :help
goto :eof
:help
echo ===============================================================================
echo NOTES
echo ===============================================================================
echo APKTool 1.4.5 and above are unofficial builds.
echo - bin: http://bit.ly/LqXR5P
echo - src: http://bit.ly/Jr6AG7
echo - xda: http://bit.ly/ODjm97
echo.
echo See the following discussion for a simple how-to.
echo - http://forum.xda-developers.com/showthread.php?t=707189
goto :eof
Name it apktool.cmd (or something else if you're a weirdo) and stick it somewhere in your path.
Error codes will be stored as APKTOOL_ERROR
If you want to use a different version, simply define the version number with APKTOOLVER.
One caveat is that I keep apktool_*.jar in a subfolder of this batch script called "android," i.e.,
.\apktool.cmd
.\android\apktool_1.4.3.jar
.\android\apktool_1.4.5.jar
.\android\apktool_1.4.7.jar
If that rubs you the wrong way, then simply remove or replace "android" in the part of the script that says %~dp0android\. (note: %~dp0 resolves to the fully qualified path name of the batch script.)