cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
caravaggio
Engaged Sweeper
Hi all,

I have many clients in remote sites (wan connections) and I would reduce as much as possible the network load.
Considering the advantage of LsPush: data sent to the server is only 40KB;
I am wondering what is the best way to deploy it. Many uses VbScript, but the script loads the client remotely each time it is launched (and lspush.exe is 1.19MB).
Maybe it is possible to deploy the client once and run it locally...

Do you have any ideas? How would you do that?


1 ACCEPTED SOLUTION
Michael_V
Champion Sweeper III
Check in your vbscript if the file exists locally and has the latest version.
If it is the latest version, have the script run it locally.
If not, copy it locally and then run it.

View solution in original post

3 REPLIES 3
Susan_A
Lansweeper Alumni
We recommend having a look at this article. Do keep in mind that we cannot provide support for writing custom scripts.
caravaggio
Engaged Sweeper
So I created this code, it will run once the user logs in.
You may see I'm a newbie in vbs, I am just checking if the file exists, but how can I check the file version?
Any hint will be very appreciated


Dim objShell
Set WshShell = CreateObject("WScript.Shell")
strHomeFolder = WshShell.ExpandEnvironmentStrings("%USERPROFILE%")
Set objShell = WScript.CreateObject( "WScript.Shell" )
Set fso = CreateObject("Scripting.FileSystemObject")
If fso.FileExists(strHomeFolder & "\lspush.exe") Then
objShell.Run(strHomeFolder & "\lspush.exe 192.168.0.1")
Else
fso.CopyFile "\\192.168.0.1\Client\lspush.exe", strHomeFolder & "\"
objShell.Run(strHomeFolder & "\lspush.exe 192.168.0.1")
End If
Set fso = Nothing
Michael_V
Champion Sweeper III
Check in your vbscript if the file exists locally and has the latest version.
If it is the latest version, have the script run it locally.
If not, copy it locally and then run it.