home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 35 Internet
/
35-Internet.zip
/
woodcnt6.zip
/
woodcnct.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
1998-02-18
|
3KB
|
93 lines
/* The name of this file is: Woodcnct.CMD */
/* LITERAL Declarations */
/* ----------------------- */
lline = '----------------------------------------------'
First = "Don(ald)"
MI = "O."
Last = "Woodall"
space1 = ' '
phone = "(616) 245-4450"
ISPid = "Iserv Customer Number: "
acctnum = "12345678"
callno = "222-4699"
initial1 = "AT&F1"
initial2 = "ATQ0S0=0V1X1&C1S12=0S2=12&D3"
modemid1 = 'My modem is an External U.S. Robotics Courier'
modemid2 = 'Voice/Data Dual Standard V.34 FAX with V.32bis'
opsys = 'Operating system is: OS/2 Warp Version 4, Fix Pack 5'
dialr = "The phone dialer is: Bjarne Jensen's InJoy, Version 1.12b"
mailr = "The mail reader program is: Nick Knight's MR/2 ICE, version 1.46a"
/* Preregistering 'syssleep' */
/* -------------------------- */
/* function_to_load = "syssleep" */
/* call rxfuncadd function_to_load,'rexxutil',function_to_load */
/* Pause until Injoy has written the data to the file "Connect.txt" */
/* ------------------------------------------------------------------ */
/* call syssleep 5 */
/* VARIABLE Declarations */
/* ------------------------- */
connectdt = stream(connect.txt,'C','query datetime')
thyme = left(time('N'),8)
dey = date('W')
parse value date() with day month year
/* File Openings */
/* ----------------- */
writefile = 'F:\INJOY\coniserv.log'
call stream writefile,'C','open write'
readfile = 'F:\INJOY\connect.txt'
call stream readfile,'C','OPEN READ'
/* Writing Literals to file */
/* ---------------------------- */
call lineout writefile, lline
call lineout writefile, First MI Last space1 phone
call lineout writefile, ' '
call lineout writefile, ISPid acctnum
call lineout writefile, ' '
call lineout writefile, 'Dialing in via phone number ' callno
call lineout writefile, ' '
call lineout writefile, 'The first initialization string is: ' initial1
call lineout writefile, 'The second initialization string is: ' initial2
call lineout writefile, ' '
call lineout writefile, modemid1
call lineout writefile, modemid2
call lineout writefile, ' '
call lineout writefile, opsys
call lineout writefile, dialr
call lineout writefile, mailr
call lineout writefile, ' '
call lineout writefile, 'Connected ' dey',' month',' day year ' at ' thyme 'hours.'
call lineout writefile, ' '
call lineout writefile, 'Connect.txt ' connectdt
call lineout writefile, ' '
/* Read from Input file, Write to output file */
/* ---------------------------------------------- */
line_read = linein(readfile)
call lineout writefile, ' Your IP Address: ' line_read
line_read = linein(readfile)
call lineout writefile, 'The GATEWAY IP Address: ' line_read
line_read = linein(readfile) /* This is a throw away line */
/* There is no need to write the above line to the output file */
line_read = linein(readfile)
call lineout writefile, line_read
line_read = linein(readfile)
call lineout writefile, line_read
/* Write final Literals to file */
/* -------------------------------- */
call lineout writefile, lline
call lineout writefile, ' '
/* Close files and exit */
/* ---------------------- */
call stream writefile,'c','close'
call stream readfile,'c','close'
exit