F
Fahd Shariff
Hi all,
I am trying to associate java class files with Jad (in Windows) so that
when I click on a class file it is decompiled on-the-fly and displayed
in wordpad.
I have written a bat file which is executed when a class file is
clicked. It looks like this:
This works fine, but I don't like the fact that a jad file is being
created. Is there some way to pipe the output of jad directly into
wordpad (without the intermediary file)?
I am not very familiar with wscript but I also put the following vbs
together which works partially:
Any help on this front would be greatly appreciated.
Thanks,
I am trying to associate java class files with Jad (in Windows) so that
when I click on a class file it is decompiled on-the-fly and displayed
in wordpad.
I have written a bat file which is executed when a class file is
clicked. It looks like this:
Code:
jad -p "%*" > "%*.jad"
start "C:\program files\Windows NT\Accessories\wordpad.exe" "%*.jad"
sleep 5
del "%*.jad"
This works fine, but I don't like the fact that a jad file is being
created. Is there some way to pipe the output of jad directly into
wordpad (without the intermediary file)?
I am not very familiar with wscript but I also put the following vbs
together which works partially:
Code:
Option Explicit
Dim objShell, objExecObject, strLine, objArgs
Set objShell = CreateObject("WScript.Shell")
Set objArgs = WScript.Arguments
Set objExecObject = objShell.Exec("jad -p " & objArgs(0))
objShell.Run "notepad"
strLine=""
Do Until objExecObject.StdOut.AtEndOfStream
strLine = objExecObject.StdOut.ReadLine()
objShell.sendKeys strLine
objShell.sendKeys "{ENTER}"
Loop
WScript.Quit
Any help on this front would be greatly appreciated.
Thanks,