
Sub ciscoconnect()
Dim sconnstring As String
sconnstring = "c:program filescisco systemsvpn clientvpnclient.exe connect" & " profiles " & user & "USER" & _
pwd & "PASSWORD"
Shell sconnstring, vbNormalFocus
Application.SendKeys ("OK")
Application.Wait (Now + TimeValue("0:00:30"))
SendKeys "y", True
End Sub |
user = "pippo":pwd="pluto":? "c:program filescisco systemsvpn clientvpnclient.exe connect" & " profiles " & user & "USER" & pwd & "PASSWORD"
c:program filescisco systemsvpn clientvpnclient.exe connect profiles pippoUSERplutoPASSWORD
Sub ciscotest()
Call ciscoconnect("clienthealthsystemvpn", "cmharris", "xxxxxxx")
Call disconnect
End Sub
Sub ciscoconnect(sprofile As String, suser As String, spassword As String)
Dim sconnstring As String
sconnstring = "c:program filescisco systemsvpn clientvpnclient.exe connect " & _
sprofile & " user " & suser & " pwd " & spassword
Shell sconnstring, vbNormalFocus
Application.Wait (Now + TimeValue("0:00:30"))
SendKeys "y", True
End Sub |
Sub ciscoconnect(sprofile As String, suser As String, spassword As String)
Dim sconnstring As String
sconnstring = "c:program filescisco systemsvpn clientvpnclient.exe connect " & _
sprofile & " user " & suser & " pwd " & spassword
Shell sconnstring, vbNormalFocus
Application.Wait (Now + TimeValue("0:00:05"))
AppActivate " AppActivate "VPN Client | User Authentication for ""sprofile""
SendKeys "{TAB}", True
SendKeys "~", True
Application.Wait (Now + TimeValue("0:00:30"))
AppActivate "c:program filescisco systemsvpn clientvpnclient.exe"
SendKeys "y", True |
AppActivate " AppActivate "VPN Client | User Authentication for ""sprofile""
