HockeyFan Posted May 4, 2006 Share Posted May 4, 2006 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! :"> Link to comment Share on other sites More sharing options...
Paulie Posted May 4, 2006 Share Posted May 4, 2006 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 Link to comment Share on other sites More sharing options...
HockeyFan Posted May 4, 2006 Author Share Posted May 4, 2006 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! Link to comment Share on other sites More sharing options...
Paulie Posted May 4, 2006 Share Posted May 4, 2006 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 Link to comment Share on other sites More sharing options...
herewasplato Posted May 4, 2006 Share Posted May 4, 2006 ...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] Link to comment Share on other sites More sharing options...
HockeyFan Posted May 5, 2006 Author Share Posted May 5, 2006 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now