On 11 Jul 01 at 2:29, arachne-digest wrote:
>Date: Tue, 10 Jul 2001 21:52:13 +0200
>From: Bernie <[EMAIL PROTECTED]>
>Subject: Re: dgi secrets
Thank you, Bernie, for your comments!
>I've atleast started to look at it. I haven't figured it all out yet nor
>have I had time to test my theory. But I can't actually see anything
>directly that's wrong. Perhaps this is a problem in Arachne? Netscape for
>instance asks "Repost form data?" if you reload a page created through a
>form, strangely enough on many pages Netscapes asks me this even without
>reloading.
it works now, but only with the goto-garbage-labels in the BAT file.
It would be nice if the query string were just empty instead.
>>file/kontrola.dgi >HTM|$1\\\ncall otazky\\kontrola.bat $e$2 $s
>>
>>The $S1\ command makes sure that the program does not run on the RAM
>>drive where Arachne is installed, but on the drive where the pages
>>and the batch file exist.
>
>This isn't correct. It could for instance be (without quotes)
>"c:\somdir\somefile", but that makes no sense in DOS (atleast MS-DOS
>complains).
I have only MS-DOS 6 and MS-DOS 7 running. The command
c:\directory\anyfile.ext\
changes to drive c:, which is exactly what I want. It does however
not change to the correct directory. If the interactive pages
are on the same drive as Arachne, but in a different directory
my dgi line probably will not work.
>Using $e$2 is also not correct since you don't know that $2 is in
>refrence to $e (for instance $e = "c:\arachne" and $2 =
>"d:\cache\12345678.htm".
Yes, this dependent on the RAM-configuration of Arachne, too.
>You'll need something like this:
>
>file/kontrola.dgi >HTM|call $1\otazky\\kontrola.bat $1 $e $2 $s
>
>And then use $e (the new %2) for using the correct directory, an
>alternative would be to split it into drive and directory. But you'll need
>to read some advanced batch documents first, and it will not work in MS-DOS
>7.x or 8.x (but I think it works in NT). You can also use $1 in the same
>way if you think you need it. You are also close to encountering the "two
>long string for DOS to handle" problem :(
Probably this the price for Arachne's high customizability: for a
simple input you have to deliver four parameters which practically
contain:
- location of Arachne executable
- location of the page containing the form
- location of the cache
- the input from the form
I begin to wonder whether this must be so complicated. Could not
core.exe find out itself where it is located?
>There's of course the problem that I only know (from the top of my head)
>three words in czech. Luckily I can figure out which is correct and which
>isn't since yes and no are two of the words. You'll need to thank Michael
>for that ;-)
Sorry, it was really just meant as a demo. I did not expect you to do
profound bible study, just wanted to show, what the kontrola.bat
is expected to do.
>BTW: When you copy a file to a new name you should add "/b" so that copy
>doesn't screw it up in case it's a binary file. Strangely enough this bug
>doesn't show itself if you keep the name intact.
... and I am staring for an hour or more at a quite simple batch file
and wonder what is wrong with it, yes, I know <g>
Regards
Christof Lange
________________________________________________________________
Ceskobratrska cirkev evangelicka - Betlemska kaple na Zizkove
Prokopova 4/216, 130 00 Praha 3, Czech Republic
Tel. (00420-2) 22 78 06 73 / 22 78 20 02
http://www.volny.cz/cce.zizkov