Closing dial-up connection ?
[1/3] from: ronald:free at: 24-Oct-2001 14:07
Hi rebolers, When I use Rebol for a mail sending task, it makes the dial up if the connection is set to auto in W98, that's OK. I'd like to automatically close my dial up modem connection after a rebol task : how can I do that from Rebol ? Cheers Ronald Gruss La philosophie selon Murphy : Souriez...demain, ce sera pire !
[2/3] from: mario::cassani::icl::com at: 24-Oct-2001 14:33
> I'd like to automatically close my dial up modem connection > after a rebol > task : how can I do that from Rebol ?
If you don't have the /Pro or /Command you need an external program to be called by a script. I suggest you RCL, for Win9x: http://www.softnik.com/products/rcl/ RebolNet.BAT ============= @Echo OFF REM Calling REBOL starts the dial D:\Rebol\view\rebol.exe yourscript.r REM REBOL creates the following script to hang the phone call Hang.BAT yourscript.r ============= REBOL[ ] ;.... write %HANG.BAT "rcl -D" This is not perfect, it's untested but should put you on the way for the right solution. Nihao Mario
[3/3] from: ronald::free::fr at: 20-Nov-2001 21:20
Re: Closing dial-up connection ?(already "old" question in the list !!)
At 14:33 24/10/01 +0100, you wrote:
>RebolNet.BAT >>@Echo OFF >REM Calling REBOL starts the dial >D:\Rebol\view\rebol.exe yourscript.r >REM REBOL creates the following script to hang the phone >call Hang.BAT
Hi Mario, Had some trouble since my question was posted, but thanks for your answer The batch can't hang the phone, because it even hasn't got time to ring !! I get this feedback : "No active RAS Connection" Why does this happen ?? Here are the scripts I tested : rem sms.bat @Echo OFF REM Calling REBOL starts the dial C:\Rebol\view\rebol.exe sms.r REM call c:\windows\bureau\hang.bat rem hang.bat c:\windows\temp\rcl\rcl -D I tried to use a call instruction before C:\Rebol\view\rebol.exe sms.r expecting the bath to wait during the script working, but I get the same answer. Did I make something wrong ? Cheers La philosophie selon Murphy : Souriez...demain, ce sera pire !