3176
Post New Requests Here / Re: Turn a batch file into an AHK script.
« Last post by 4wd on May 09, 2013, 05:42 AM »I have found that the icon sometimes remains when I disconnect and the only way to get rid of it is to close the program using the task manager.-pilgrim (May 09, 2013, 03:57 AM)
Or perhaps right-click on the icon and select Exit?

Next time it happens please open a CLI and type rasdial.exe and copy the results. If it says "No connections" then there is a problem.
When I close the connection and the icon does disappear it takes about 5 seconds by my reckoning, I am not sure if this is related to the polling delay or a shutdown delay, either way could it be reduced to say 2 seconds?
I can change it easily enough but there will be an attendant CPU load increase also, (due to less time in idle state and calling rasdial more often). Still looking at a better way to get connection state - possibly just by hitting the performance counters.
Does the latest version of PPTPchek replace the previous version if someone is still using batch files or do they work in different ways?
Replaces, it only requires an optional delay, it will pick up the connection name from what rasdial reports.
I think I mentioned somewhere that I am in touch with a VPN developer/provider, would you have any objections if details/instructions for PPTPchek were put on his website, it would of course be credited to you?
Not a problem, maybe I'll add a /? so you can get the CLI parameters, (like a normal DOS command).