JAD for folders

A

avish

I'm trying to write a command that will jad .class files recursively on

folders.
The problem is with: jad.exe %className% -d %pathName%
The actual command is: jad.exe ./com/cla/Load.class -d dirname
../com/cla/Load.class
While I was expecting that %pathName% will return ./com/cla , like
dirname should work.

Anyone have idea why?


Here is my command:


ECHO OFF
echo JAD
(%MKS_HOME%\find.exe . -type f | %MKS_HOME%\grep.exe .class) >>
tmpClassFileList.txt
FOR /F %%1 in (tmpClassFileList.txt) do (echo Decompiling %%1
set className=%%1
set pathName=dirname
%className%
D:\WINNT\system32\jad.exe
%className% -d %pathName%
set jadName=%className:class=%
mv %jadName%jad %jadName%java)


del tmpClassFileList.txt
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top