home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1997 May
/
Pcwk0597.iso
/
wtest
/
idt
/
data.z
/
BYE.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1996-02-23
|
930b
|
36 lines
#
# Trumpet Winsock 2.1 Bye.cmd
#
# Copyright (C) 1994,1995 Peter R. Tattam &
# Trumpet Software International Pty Ltd (TSI)
# All rights reserved.
#
# Unless TSI has given prior written consent to such use,
# no permission is granted to distribute or otherwise make available
# to the public modified versions of this script for commercial purposes.
# Any permitted distribution of modified versions of the script must
# retain the copyright notice at the start of this file and must clearly
# identify those parts of the file which have been modified.
#
#
# Set %which to 1 for normal DTR hang up or
# 2 for ATH0 style hangup
#
%which = 1
status "Disconnecting modem..."
if %which = 1
set dtr off
sleep 1
set dtr on
end
if %which = 2
sleep 2
output +++
input 5 OK\n
output ath0\r
input 5 OK\n
end
status "Modem has been disconnected."
sleep 1