We’re currently experiencing a high volume of support requests, which may result in longer response times — Thank you for your patience and understanding.
Community FAQ
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
DavidMS1
Engaged Sweeper
I am trying to determine the best way to transparently invoke LSCLIENT.EXE from the CISCO VPN client. There is an option where on connect (but before the connection is established) a selected program runs. Has anyone created a script that will wait untill the connection is established and then execute LSCLIENT?

Thanks,

David
2 REPLIES 2
Hemoco
Lansweeper Alumni
You forgot a quote before Wscript
Set WshShell = CreateObject("WScript.Shell")


Also you should use backslashes instead of forward slashes.
DavidMS1
Engaged Sweeper
I got a book on scripting and attempted to write somthing up that would wait a period of time and then execute LSCLIENT.

This is the script:


Option Explicit
Const TIME = 100 'In Miliseconds (1/1000 secounds)

Wscript.Sleep TIME
Set WshShell = CreateObject(WScript.Shell")
WshShell.run "//LSServer/lsclient/lsclient.exe LSServer"


I get an error on line 9, char 44. The error message is an Unterminated String Constant. I know its a very simple problem, but I have never worked with scripts before.

Thanks,

David

Archive

This board contains archived posts from the retired Lansweeper Forum and Insiders Community.

New to Lansweeper?

Try Lansweeper For Free

Experience Lansweeper with your own data.
Sign up now for a 14-day free trial.

Try Now