Just a sample of the Echomail archive
[ << oldest | < older | list | newer > | newest >> ]
|  Message 462  |
|  mark lewis to Dennis Ayala  |
|  DOOR32.SYS  |
|  24 Oct 15 14:53:32  |
 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 ===== @echo off if exist door32.sys del door32.sys set RECNUMB=%1 for /l %foo in (0,1,%@EVAL[%@LINES[D32SYS.]-1] do echo %@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 ===== @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) |
[ << oldest | < older | list | newer > | newest >> ]