Friends,
Some months ago I was looking for a way to programatically dial and
disconnect a SPECIFIED dial-up networking connecion. Although no VFP solution
was found, today I came across a topic by the name of RASDIAL in windows
help. There is an internal application in windows by the name of rasdial.exe
which did what I wanted. (My OS is win XP Pro, however this application seems
to be there in Win95 upwards)
However while I was searching for topics related to RASDIAL in windows web
knowledgebase, it appeared to me that there is an RASDIAL API also. My
knowledge of API call is as good as none. I will appreciate it very much if
some members please guide me towards better usage of this feature.
I used the following code to connect and disconnect:
run rasdial "Connection_name" "username" "password"
run rasdial "connection_name" /d
(I found details about the utility by searching by keyword "rasdial" in win
XP help)
Now I am looking forward to have following features:
1. To know if connection has been successful, else redial.
2. To be able to do these things without the usual black window.
Please accept my gratitude for the helpful and useful posts in the group. I
will look forward to have a detailed sample code because I do not have
detailed knowledge of API calls.
Best Regards
S Bans