Tank you, "ERROR_NOT_ENOUGH_MEMORY" does'nt appear, when connexion are established (with RASDial Command on 2x7), the return variable is "0" (Open Port). RAsHAngUp don't disconnect, and RASGetStatus always return "Open Port", when i disconnect manually. : This is a known issue. On some Windows versions this error appears regardless : of result of calling RASDial command. Several workarounds are available, : for example, you can do : OnErrorResumeNext : RASDial ... : OnErrorStop : or instead of calling RASDial statement you can execute RAsDial command line : utility : Dim pid, number : RunAndWait "rasdial [entryname here]", "", 60, pid : ... do what you need to do after dialing ... : RunAndWait "rasdial [entryname here] /DISCONNECT", "", : 60, pid
|