The other day I blogged about getting Cisco VPN to stay connect in Vista. The fix was a constant ping. It is all good but then you have this CMD window open all day in your taskbar, just taking up space, etc.
I decided to workaround it.
I created a .vbs (Visual Basic Script) called pingserver.vbs and put this in it:
Set WshShell = WScript.CreateObject("WScript.Shell")
cmd = "ping servername -t"
Return = WshShell.Run(cmd, 0, True)
set WshShell = Nothing
(replace servername with your name of the server you want to constant ping)
Then in Cisco VPN. Options Menu->Application Launcher. Check "enable" and browse to your VBS. Then when you connect it will run that VBS file, and you will have a hidden constant ping going to your server. Nice..
5 replies on “Cisco VPN – Launch a Hidden Constant PING Window on Connect”
Thanks for this–bought you a beer 🙂
LikeLike
Hi,
The solution seems to be working for me. Thanks for the smart fix.
LikeLike
Tried it out and it didn’t work.=( It doesn’t look like Cisco VPN client’s Application Launcher likes vbs scripts. I can run .bat files from it but do get that annoying command prompt window.
LikeLike
I’m trying to do the same; run a VBS file from Cisco Client Application Launcher. Seems it doesn’t like VBS files.
I can successfully point a BAT at the VBS no problem, but I’d like to avoid the DOS box coming up on the desktop.
I’m using Cisco VPN vlient 4.8.0, looks like you’re using 5.0something… Can you confirm that you can call a VBS straight from the Command= in VPNCLIENT.INI? And please confirm your VPN client version
Thanks, Phil
LikeLike
My Cisco client wouldn’t launch the vbs script directly. “Workaround”: Put “C:WINDOWSsystem32wscript.exe c:pathtoping.vbs” in the filename field.
LikeLike