RASHangUp( connection ) terminates the logical connection to the server. If you want to modem to hang up ensure that in the profile properties you have something "hang up after last connection is closed." On different systems this option has a different name and available in different places. Please also note that with some servers it may take a little while to close the connection (up to several minutes) after a call to RASHangUp is made. : Hi : I use the following script to establish a modem connection. : It's all fine but at the end the modem doesn't hang up?!! : What is wrong? (Version 3.4.16) : // declare variables : Dim( connection, number ) : // establish RAS connection : RASDial( "sunrise", "sunrise", "freesurf", : connection ) : Wait( 5 ) : // terminate RAS connection : RASHangUp( connection )
|