Re: Size of translated programs

new topic     » goto parent     » topic index » view thread      » older message » newer message

Carl wrote:

> Juergen Luethje wrote:
>>
>> In order to automatically translate to smaller executables, I wrote the
>> following batch file:
>>    @echo off
>>    shroud -clear -out %2 %1
>>    ecw.exe -bor %2
>>
>> but it does not work. The last command is not executed. Does anyone know
>> the reason why?
>
> 'shroud' is actually a batch file that calls the real shroud.ex* and DOS
> has a nasty habit of not transferring control back to a calling batch
> file after another has been run. i.e. in your case it means that control
> isn't returned to your script when shroud quits.
>
> You have to tell it to return control by using the DOS 'call' command:
>      @echo off
>      call shroud -clear -out %2 %1
>      ecw.exe -bor %2

Thanks again.
As I wrote, this worked fine -- but only for shrouding/translating small
programs, as I see now. There is an issue with big files, which I wasn't
aware of. 'call shroud' runs asynchronously, and this may lead to
strange results. I detected that by shrouding/translating 'boxes.exw'
(ships with Win32Lib). Now I use
   @echo off
   start /w exw.exe bind.ex -SHROUD_ONLY -clear -out %2 %1
   ecw.exe -bor %2

This seems to work as expected.

Regards,
   Juergen

-- 
 /"\  ASCII ribbon campain  |    |\      _,,,---,,_
 \ /  against HTML in       |    /,`.-'`'    -.  ;-;;,_
  X   e-mail and news,      |   |,4-  ) )-,_..;\ (  `'-'
 / \  and unneeded MIME     |  '---''(_/--'  `-'\_)

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu