TIP: Click on subject to list as thread! ANSI
echo: ra_support
to: Dennis Ayala
from: mark lewis
date: 2015-10-24 14:53:32
subject: DOOR32.SYS

23 Oct 15 16:02, I wrote to Dennis Ayala:

 ml> see above... i found that we can get the user number on the command
 ml> line but figuring out how to drop it into the D32SYS or final
 ml> DOOR32.SYS file is another problem... looks like we might have to pass
 ml> the speed and BBS name and version as parameters to the BAT file so we
 ml> can get the user number in there... that'll change the RAT file, the
 ml> menu line and the MYDOOR.BAT file...

i got this working as a test on my OS/2 system *BUT* it requires 4DOS to be
able to process each line of the D32SYS file created by the RAT template...
we have to echo each line so that the %VARIABLEs will be filled in with
their contents from the environment when writing the DOOR32.SYS file... in
RA i'm passing *R on the command line to get the user's record number...
that is then set in an environment variable %RECNUMB in the bat file...


the ramenu line for the door looks like this

  *c /c c:\ra\d32sys.bat *r *sd32sys *m


D32SYS.BAT file looks like this...

===== begin D32SYS.BAT =====
{at}echo off
if exist door32.sys del door32.sys
set RECNUMB=%1
for /l %foo in (0,1,%{at}EVAL[%{at}LINES[D32SYS.]-1] do echo %{at}LINE[D32SYS.,%foo]
>> DOOR32.SYS
===== end D32SYS.BAT =====


D32SYS.RAT looks like this

===== begin D32SYS.RAT =====
2
%SOCKHAND
^Kr
RemoteAccess 2.62
%RECNUMB
^Fa
^F3
^Fo
^F_
1
^Kw
===== end D32SYS.RAT =====


the command line in GAMESRV would look like

  c:\gamesrv\nf.bat *H /n*N /h*H c:\ra\ra.exe -n*N -B57600


and NF.BAT would look like this

===== begin NF.BAT =====
{at}echo off
REM NF.BAT for NetFoss
REM capture the socket handle to SOCKHAND
set SOCKHAND=%1
shift
REM now process as normal before the above 2 lines were added
c:\gamesrv\netfoss.com %1
if errorlevel 1 goto end
c:\gamesrv\netcom.exe %1 %2 %3 %4 %5 %6 %7 %8 %9
c:\gamesrv\netfoss.com /u
:end

===== end NF.BAT =====

i had to change T-HANDLE to SOCKHAND because i found on my system that a
'-' broke the variable name... SOCKHAND is short form of SocketHandle...


NOTE: the above should work IF 4DOS or 4NT can be employed... i do not know
how to have winwhatever script files process a data file line by line and
echo each line with the %VARs replaced back out to a destination file...
*MAYBE* the following line can replace the one above in the D32SYS.BAT file
above...

  for /f "delims=" %%x in (D32SYS.) do echo %%x >> DOOR32.SYS

i don't know and will have to try to get on a Vista machine to test it... i
have no way to test it beyond Vista... hopefully the "echo %%x"
part will properly fill in the two %SOCKHAND and %RECNUM vars in the file
with their contents from the environment when it runs...


)\/(ark

... I *do* have a 32" waist. My fat is there to protect my perfect body  ;*)
---
* Origin: (1:3634/12.73)
SEEN-BY: 19/33 75 34/999 90/1 116/18 120/331 123/500 128/187 140/1 218/700
SEEN-BY: 222/2 226/0 160 230/150 240/1120 261/38 100 266/404 267/155 280/1027
SEEN-BY: 282/1031 1056 292/907 908 320/119 219 340/400 396/45 633/267 640/384
SEEN-BY: 712/620 848 770/1 801/161
@PATH: 3634/12 123/500 261/38 712/848 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.