Resending to the list!

On Mon, 12 Nov 2001 03:31:52 -0400, Clarence Verge wrote:

> On Sun, 11 Nov 2001 22:55:53 +0000, Bastiaan Edelman wrote:

>> Norton is now returning to original file... but...

>> If Arachne has some complicated task to perform there is no returning.

>> BMP returning OK
>> HTM returning OK
>> GIF OK
>> JPG not OK stays in Arachne
>> PDF not OK
>> PS  not OK

>> The viewing of JPG, PDF and PS is OK, not the returning.

>> Looks like the "pop" command at the end of the .bat is ignored as
>> Arachne is doing a comlicated task like converting JPG to BMP.

> It may be that some modification to mime.cfg is required for your
> situation. Looks like when these last functions are run the .BAT
> terminates. Try adding "CALL" on the mime.cfg line just in front
> of the function. i.e. like:
> image/jpeg               JPG>BMP|CALL $edjpeg32.exe $j $1 $2

> Normally the CALL is used when you need to execute another batch
> file and return to the launch point. I don't know if it will help
> here, but the mime.cfg line is VERY similar to a one line .bat file.

> Try it and let us know.

> - Clarence Verge
> - Back to using Arachne V1.62 ....

Hello All...
I did a lot of figuring out and it came out that the problem is in the
conversion to BMP.
JPG, PS and PDF are converted to BMP and following what happened in
viewer.bat = abt mime.cfg there is a difference in executing
: execute
and : fastexecute
files using execute are returning OK
files using fastexecute are not

****** viewer.bat *******
push
C:
cd \arachne

@echo            ;I changed this to see what happens
break=on         ;I changed this to read fast echoing
<snip>
if not (%1) == () goto continue
<snip>
:continue
core.exe %1 %2
if errorlevel 128 goto fastexecute
if errorlevel 64 goto execute

:execute
$roura$.bat
goto err

:fastexecute
echo 111111111       ;included to see the flow of action
if not (%ARACHNETEMP%)==() %ARACHNETEMP%\$roura$.bat
echo 222222222       ;included to see the flow of action
%TEMP%\$roura$.bat
echo 333333333       ;included to see the flow of action
if exist %TEMP%$roura$.bat %TEMP%$roura$.bat
<snip>

11111 is echoed
22222 is echoed
33333 is not echoed => fastexecute never goes to the end of this batch
file... so no 'pop' returning is read.
Is there something wrong with %TEMP% ?

:end
if exist $roura?.bat del $roura?.bat
if exist %ARACHNETEMP%\$roura$.bat del %ARACHNETEMP%\$roura$.bat
if exist %TEMP%\$roura$.bat del %TEMP%\$roura$.bat
if exist *._$b del *._$b
if exist %ARACHNETEMP%\*._$b del %ARACHNETEMP%\*._$b
if exist %TEMP%\*._$b del %TEMP%\*._$b
if exist ip-up.bat del ip-up.bat
if exist ppp.log echo Type 'arachne -u' to terminate SLIP/PPP connection.
if exist lock del lock
echo
C:\               ;had to add C:\ in order to find pop in C:\
pop

PS: If a JPG, PS or PDF file is opened before (and stored to the cache)
than Arachne uses the second (3rd... ) time :execute and all is fine.
Returning is OK than and the file is not coverted again but comes from
the cache very quickly.

What is all that %TEMP% stuff for and how does it function??

Well I should let you know.... CU Bastiaan

-- Arachne V1.61, NON-COMMERCIAL copy, http://arachne.cz/

Reply via email to