On  1 Nov 01 at 9:55, owner-arachne-digest@arachne wrote:

>Reply to Sender: mailto:[EMAIL PROTECTED]
>Reply to List: mailto:[EMAIL PROTECTED]

>But... after showing HTML or a picture in Arachne, Arachne is not
>going back correctly to the original working directory in Norton but
>stays in C:\Arachne. When looking at a series of images I have to
>search for the original directory and filename manualy... Norton is
>supposed to go back to the last entry and not to stay in Arachne
>directory.
>
>How can I correct that???

Hi Bastiaan,

one way to work around this problem would be defining an
additional drive letter with the subst command:

     SUBST L: C:\ARACHNE

In this case you need not care about the current directory of
C:, but just change between different drive letters.
If you run Arachne from a RAM disk you probably have to change
the drive anyway.

The viewer.bat I have been using for quite some time from
e.g. Norton Commander looks basically :

    **** beginning of viewer.bat ****

    @echo off

      rem sometimes it may be important to watch environment space:
    call popenv.bat

    cls

      rem Check whether Arachne is already running
      rem if you run e.g. Norton Commander from
      rem Arachne and then start viewer.bat
    if not exist l:\lock goto AraStart
    echo 
    echo Warning! You can load Arachne only once at a time.
    echo It seems as if there is already another copy of Arachne
    running. echo Or last time Arachne was not terminated regularly.
    echo.
    choice Have you another copy of Arachne running just now /C:yn
    if errorlevel 2 goto AraStart
    goto AraEnd
    :AraStart

      rem Change drive to L:
    getdrive >%temp%\drive.bat
    L:
    cd \

      rem the copy and move lines are necessary if you run
      rem Arachne from RAM disk and want to save changes in
      rem configuration. It also makes sense to modify
      rem arachne.cfg for offline use (eg. SHIFT FN keys)
    copy nul L:\history.lst > nul
    copy M:\OFFLINE.ACF L:\ARACHNE.CFG > NUL
    copy M:\OFFLINE.PCK L:\ARACHNE.PCK > NUL
    copy M:\MIME.CFG L:\MIME.CFG > NUL
    call arachne.bat %1 %2 %3 %4
    MOVE L:\ARACHNE.CFG M:\OFFLINE.ACF > NUL
    MOVE L:\ARACHNE.PCK M:\OFFLINE.PCK > NUL
    MOVE L:\MIME.CFG M:\MIME.CFG > NUL

      rem Reset drive
    call %temp%\drive.bat

    :AraEnd

    **** end of viewer.bat ****

If you do not like changing between virtual drives, here
is a batch file that saves and restores the current directory:

    @echo off
    echo @prompt cd $p$_$n:> %TEMP%\setback.bat
    %comspec% /c %TEMP%\setback> %TEMP%\goback.bat

    rem change to directories of your choice
    rem and run programs

    call %TEMP%\goback
    if exist %TEMP%\setback.bat del %TEMP%\setback.bat
    if exist %TEMP%\goback.bat del %TEMP%\goback.bat

Regards
Christof Lange

_______________________________________________

 Christof Lange <[EMAIL PROTECTED]>
 Prokopova 4, 130 00 Praha 3, Czech Republic
 phone: (+420-2) 22 78 18 00 / 22 78 20 02, telefax: 22 78 18 01 
 http://www.volny.cz/cce.zizkov


Reply via email to