Try this RunAndWait( "rasdial.exe Connection1", "user1", "pwd1"", "", 0, pid ) : I've searched through the forums looking for a : solution to the above problem. I found the following... : =============== : Instead of calling RasDial/RasHangup commands you can use the following : Dim( pid, number ) : RunAndWait( "rasdial.exe [connection name here]", "", 0, : pid ) : ... do what you need to do here ... : RunAndWait( "rasdial.exe [connection name here] /DISCONNECT", : "", 0, pid ) : =============== : I can't get this command to work. I've been trying to rearrange my : " by can't seem to get the correct sequence. : For instance, I get a syntax error on the following... : RunAndWait( "rasdial.exe "Connection1" "user1" : "pwd1"", "", 0, pid ) : Any help on the above problem would be greatly appreciated. : Thanks! : Mike
|