Sign in to follow this  
Followers 0
HockeyFan

Network Connection Help

6 posts in this topic

Can someone help me figure out how to test to see if a Windows XP SP2 Dial-Up network connection exists, by name if possible, and then delete it if it does?? :)

Im really stummped on this one! :">

Share this post


Link to post
Share on other sites



SP2 Dial-Up

Man, I feel bad for you :)

Anyway, is their an icon for the connection quality?

if so use

Pixelsearch(1060,994,1279,1023, "*Your icon's Color*")

If not, tell how you know whenther or not it exists manually

and try to find a way to automate that manual work

Share this post


Link to post
Share on other sites

Paulie,

I'm creating a script that installs a new Dial-Up connection...yes, I know, "Dial-Up" Yuck...for my orgainization (they want no end-user interaction during the install). But I need to make sure the current Dial-Up connection is deleted first, so I don't get the following error message: "Connection with specified name already exists. please provide a unique connection name".

I know it exists because it is standard on every image which is located under the "Network Connections" icon...see screen shot below.

YES, I know a different name would do the trick, but I also want to make sure the "connection" is deleted in case the end-user runs the script more than once.

Any help would be greatly appriciated! :)

Share this post


Link to post
Share on other sites

Ok, try to do somting with

WinGetText("Network Connections", "Dial Up")

That should help you find if it exists

But to delete it, can you just delete it right there?(Im not sure i never mess with my connection, its nstable as it is)

I dunno, bt im outta cmputer time, its work time so i'll get back to you on this

Share this post


Link to post
Share on other sites

...see if a Windows XP SP2 Dial-Up network connection exists, by name if possible, and then delete it if it does...

Run this one line of code:
Run("RASPHONE /?")
and notice the "-r" option.

You might also consider using "RASPHONE -a" to start the Wizard that you were using in your other thread.

Here is a site that talks a bit about RASDIAL and RASPHONE:

http://www.visualautomation.com/comprod/secure6/dialup_t.htm

...hope this helps...


[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

Run this one line of code:

Run("RASPHONE /?")
and notice the "-r" option.

You might also consider using "RASPHONE -a" to start the Wizard that you were using in your other thread.

Here is a site that talks a bit about RASDIAL and RASPHONE:

http://www.visualautomation.com/comprod/secure6/dialup_t.htm

...hope this helps...

Thank you! :) This should lead me down the right path.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0