Last active
February 17, 2016 15:17
-
-
Save pdemanget/473ef52aa4fe49e9c0b5 to your computer and use it in GitHub Desktop.
Unpack JDK under windows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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