>>Take a look to RASHangUp() Win32 API function. I think this is what you're looking for.
>>
>>Vlad
>>
>>>I have finally managed to create a program that allows me to establish a RAS connection from one server to another, but what I want to do know is to automatically disconnect from the RAS dial up network. The reason is that I work For The National Centre For Cosmetic Surgery in Birmingham and what I want to do is to connect to more of our branches/servers together so that we can automaticaly transfer information over from one branch to another but the problem I'm having that once the information has been transferred I want the program to disconnect the RAS connection automatically.
>
>Hi Paul
>Thanks for the solution, It worked like a dream. The problem I am having now is that after connecting and disconnecting a couple of time Windows Nt starts giving you error stating that the com1 port is still open. You mentioned in your previous message some thing about a 'sleep' command that is used to reset the com port. Please could you tell me what parameters I have to type up to get this feature to work.
>
>Have a nice day
>Glen Stone
I never said anything about a "sleep" command. Sorry. Maybe it was an other Paul? :)
Vlad
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement