View Single Post
Old 19.05.2006, 02:01   #6
ANRDaemon
Архивный участник
 
Join Date: Feb 2006
Posts: 158
Default

When You skilled enough...

shell.bat:
Code:
SET DDF=%[1]
SET CMD=%[2]
shift 2

iff "%[1]" EQ "-e" then
  SET EXPORT=-e "%[2]"
  shift 2
endiff

iff "%[1]" EQ "-q" then
  SET SILENT=-q
  shift
endiff

iff "%[CMD]" EQ "enc" then
  X:\Path\To\l2asm\l2asm.exe -d "%[DDF]" %[SILENT] "%[2]" "%[1]"
elseiff "%[CMD]" EQ "dec" then
  X:\Path\To\l2asm\l2disasm.exe -d "%[DDF]" %[EXPORT] %[SILENT] "%[1]" "%[2]"
endiff

done
And add this to shell...
FTYPE l2asm=cmd.exe /C "X:\Path\To\l2asm\shell.bat" "%%1" %%*
ASSOC .ddf=l2asm

And just use definition file as archiver...
X:\Path\To\l2asm\c4\actionname-e.ddf dec file.dat file.txt
X:\Path\To\l2asm\c4\actionname-e.ddf enc file.dat file.txt

It's good for me... But You can use it or not... Or blame me... As You like...

P.S.
It is NOT A M$ BATCH SCRIPT.
Visit http://jpsoft.com/ for more information.

P.P.S.
"done" is ALIAS
Code:
done=iff %_TRANSIENT == 0 .and. %_BATCH == 1 then %+ exit %1 %+ else %+ quit %1 %+ endiff
ANRDaemon is offline