DOS Arachne v1.99 (Announce)
> > One thing that I wish that Links2 did was the DGI bit. That would make
> it
> > so nice for many, many use cases.
>
> What is it: "DGI bit"?
DGI is basically a DOS batch file written all on one line which we add into MIME.CFG
Over the years, I added a whole bunch of them.
;--------------------------------------------------------------------------
;Arachne understands four basic file types: HTM, GIF, BMP, TXT, CSS and ASF.
;Only GIF and BMP can be inlined using <IMG> tag. If the file has different
;extension than one those and if in the following conversion table no
;corresponding action is defined, Arachne offers moving of downloaded file
;from CACHE directory (or of local file) to DOWNLOAD directory.
;ASF files are treated as script files (simply lists of URLs).
;
;For conversion to supported format is used macro "ext1>ext2|command",
;for calling external viewer macro "extension|command". See syntax rules
;(at the end of this file.)
;--------------------------------------------------------------------------
;---------------------------------------------------------------------------
;Syntax of MIME.CFG (please don't beat me, I'll never do it again !! 
;--------------------------------------------------------------------------
;* If command starts '@', it will be executed in text mode and with maximum
; memory.
;* If command starts with [nn] string, it will be executed without
; temporary leaving of Arachne if there is [nn] kB available for program.
;* In command arguments you can use following macros. Instead of $1, $2, etc.
; like in Unix scripts you can use %1, %2 like in DOS batch files.
; $1 ... full input filename
; $2 ... full output filename
; $a ... patch to cache ("Archive") (typicaly CACHE\)
; $b ... full name of Bookmarks (typicaly HOTLIST.HTM)
; $c ... full name of Cache index (typicaly CACHE.IDX)
; $d ... Document name (ftp://ftp.provider.com/pub/ -> /pub/)
; $e ... path to Executable files (CORE.EXE, insight.exe, etc.)
; $f ... file browser arguments (icons or file list)
; $g ... ip address of 1st Gateway (according to ARACHNE.CFG)
; $h ... full name of History file (typicaly HISTORY.LST)
; $i ... your Ip address
; $j ... DJPEG arguments - ARACHNE.CFG variable DJPEGargs + color depth, etc.
; $l ... Last visited document (filename)
; $m ... path to Mail directory (typicaly MAIL\)
; $n ... ip address of 1st Nameserver (according to ARACHNE.CFG)
; $p ... host ("Pocitac") (telnet://cyberspace.org -> cyberspace.org)
; $q ... filename of Query string (file created only when using this macro)
; $r ... horizontal Resolution of the screen (value is 640, 800 or 1024)
; $s ... cgi compatible query String (max. 80 characters)
; $t ... path for Temporary files (either CACHE\ or %TEMP% - see Cache2TEMP)
; $u ... Url of document
; $w ... doWnload path (typicaly DOWNLOAD\)
; $x ... netmask (according to ARACHNE.CFG)
; \n ... end of line (note: this won't work for "|[nn]xx" style commands!)
; %% ... % character
; $$ ... $ character
_________________________________________________________________________________________________-
[glennmcc stuff]
file/manpage.dgi |@man.exe $s | less.exe
file/lynx.dgi |@call $edoslynx.bat $s
file/savefile.dgi >txt|if exist $s goto ne\ncopy /b $l $S>$2\ngoto end\n:ne\necho "file exists">$2\necho "try a new name">>$2\n:end
file/dir.dgi >htm|dir $klastdir \|$esystem\\dgi\\fixmem.com dir>$2
file/font8x14.dgi >HTM|copy /b $esystem\\8x14\\$kfont8x14 $esystem\\8x14.fnt \ncopy /b $ealt-font.htm $2
file/propfont.dgi >HTM|copy /b $esystem\\$kpropfont $esystem\\*.fnt \ncore.exe -f \ncopy /b $ealt-font.htm $2
file/saveaszbm.dgi |zip -9 -j $s $l\n ren $s *.zbm
file/bmp2zbm.dgi >TXT|zip -m -j $s _4prt.bmp|del _4prt.bmp \n if exist $s echo file has been converted to $s>$2
file/export.dgi >TXT|copy /b _4prt.txt $s>NUL |del _4prt.txt \n if exist $s echo file has been saved to $s>$2
file/exportps.dgi >TXT|copy /b _4prt.ps $s>NUL |del _4prt.ps \n if exist $s echo file has been saved to $s>$2
file/exportbmp.dgi >TXT|copy /b _4prt.bmp $s>NUL |del _4prt.bmp \n if exist $s echo file has been saved to $s>$2
file/bmp2jpg.dgi >TXT|cjpeg -q 95 _4prt.bmp|copy _4prt.jpg $s|del _4prt.bmp|del _4prt.jpg \n if exist $s echo file has been converted to $s>$2
file/printprn.dgi |[100]TYPE _*.txt>PRN\ntype formfeed>prn
file/printbmp.dgi |[100]g:\\graphics\\printgfd\\printgfd.exe _4prt.bmp /x
file/printjpg.dgi |[100]g:\\graphics\\printgfd\\printgfd.exe _4prt.jpg /x
file/mxedit.dgi |@call xedit.bat textarea.tmp
file/txedit.dgi |@call xedit.bat $l
file/qxedit.dgi |@call xedit.bat quickpad.txt
file/exportbmp.dgi |[100]COPY /b _4prt.bmp $w$s>NUL \n del _4prt.bmp
file/edithelp.dgi >htm|copy textarea.tmp mail.tmp|copy edithelp.htm $2
file/dgst2cnm.dgi |@call d2c.bat $e_4prt.txt $s
file/xtgold.dgi |@c:\\xtgold25\\xtgold.com
[end of glennmcc stuff]
Entering file://xtgold.dgi on the URL line branches-out of Arachne and runs xtgold.com
When xtgold.com is exited, we are returned back into Arachne at the same point where we left.
The more complex ones such as bmp2jpg.dgi execute each section separated by \n as-if they were separate lines in a batch file.
---
--
http://glennmcc.org/
Complete thread:
- DOS Arachne v1.99 - glennmcc, 23.12.2021, 19:37
![Open in board view [Board]](img/board_d.gif)
![Open in mix view [Mix]](img/mix_d.gif)
- DOS Arachne v1.99 - Oso2k, 24.12.2021, 00:25
- DOS Arachne v1.99 - glennmcc, 24.12.2021, 01:48
- DOS Arachne v1.99 - Oso2k, 24.12.2021, 01:55
- DOS Arachne v1.99 - glennmcc, 24.12.2021, 06:23
- DOS Arachne v1.99 - Laaca, 24.12.2021, 19:59
- DOS Arachne v1.99 - Oso2k, 25.12.2021, 03:35
- DOS Arachne v1.99 - Laaca, 25.12.2021, 22:19
- DOS Arachne v1.99 - Oso2k, 26.12.2021, 01:35
- DOS Arachne v1.99 - glennmcc, 26.12.2021, 06:01
- DOS Arachne v1.99 - glennmcc, 28.12.2021, 18:11
- DOS Arachne v1.99 - Oso2k, 28.12.2021, 19:27
- DOS Arachne v1.99 - glennmcc, 28.12.2021, 20:46
- DOS Arachne v1.99 - RayeR, 30.12.2021, 04:38
- DOS Arachne v1.99 - glennmcc, 30.12.2021, 18:55
- DOS Arachne v1.99 - RayeR, 31.12.2021, 02:59
- DOS Arachne v1.99 - glennmcc, 30.12.2021, 18:55
- DOS Arachne v1.99 - SuperIlu, 05.01.2022, 11:24
- DOS Arachne v1.99 - glennmcc, 05.01.2022, 18:19
- DOS Arachne v1.99 - SuperIlu, 05.01.2022, 21:54
- DOS Arachne v1.99 - glennmcc, 05.01.2022, 22:00
- DOS Arachne v1.99 - SuperIlu, 05.01.2022, 22:22
- DOS Arachne v1.99 - glennmcc, 05.01.2022, 22:00
- DOS Arachne v1.99 - SuperIlu, 05.01.2022, 21:54
- DOS Arachne v1.99 - glennmcc, 05.01.2022, 18:19
- DOS Arachne v1.99 - Oso2k, 28.12.2021, 19:27
- DOS Arachne v1.99 - glennmcc, 28.12.2021, 18:11
- DOS Arachne v1.99 - Laaca, 25.12.2021, 22:19
- DOS Arachne v1.99 - Oso2k, 25.12.2021, 03:35
- DOS Arachne v1.99 - Laaca, 24.12.2021, 19:59
- DOS Arachne v1.99 - glennmcc, 24.12.2021, 06:23
- DOS Arachne v1.99 - Oso2k, 24.12.2021, 01:55
- DOS Arachne v1.99 - glennmcc, 24.12.2021, 01:48
- DOS Arachne v1.99 - glennmcc, 27.03.2022, 19:57
- DOS Arachne v1.99 - Oso2k, 24.12.2021, 00:25
Mix view