Skip to content

Instantly share code, notes, and snippets.

@pdemanget
Last active February 17, 2016 15:17
Show Gist options
  • Save pdemanget/473ef52aa4fe49e9c0b5 to your computer and use it in GitHub Desktop.
Save pdemanget/473ef52aa4fe49e9c0b5 to your computer and use it in GitHub Desktop.
Unpack JDK under windows
@echo off
set JAVA_HOME=d:\opt\jdk
cd /D %JAVA_HOME%
call :treeProcess
goto :eof
:treeProcess
rem Do whatever you want here over the files of this subdir, for example:
for %%i in (*.pack) do (echo "unpacking %%i" & %JAVA_HOME%\bin\unpack200 "%%i" "%%~ni.jar" & del "%%i")
for /D %%d in (*) do (
rem echo %%d
cd
cd %%d
call :treeProcess
cd ..
)
exit /b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment