Forum Discussion
KevinA
16 years agoRetired GoTo Contributor
One2Many Script Repository
Welcome to the LogMeIn Central Script Repository!
What is it? A library of scripts to help you execute automated tasks and manage LogMeIn Pro² computers without having to access them manually. ...
- 8 years ago
https://github.com/knix15/LogMeIn-One2Many-Community-Scripts/
Scripts can be found here as well for better future organization.
carlcapone
9 years agoActive Contributor
Hi everyone,
I am kinda wondering if someone has successfully transfered files using a script instead of the file transfer/manager in LMI. If anyone is willing to share a working script, that would be awesome. Thank you.
P.S. I've posted on the other thread as well.
- j_helland9 years agoActive Contributor
Hey CarlCapone, if you set up a "custom" One2Many, upload the files, then use the example syntax below, you can transfer multiple files using a simple DOS format:
copy file1.txt "C:\folderpath"&© file2.txt "C:\folderpath&© file3.txt ................
Essentially you'll need to separate each command by the double ampersand, which tells DOS that a new command is coming. I've been using this methodology for complex One2Many pushes for about 6 years and it takes some trial and error, but it usually works!
- carlcapone9 years agoActive Contributor
Hey there,
Thanks for the replies. Sorry it's been some time since I've checked back on this. Anyway, @j_helland is this possible on the Rescue LogMeIn centralized script setting? So far, that's the only option I see where I can upload files and/or custom scripts? Not entirely sure if it's the same with the One2Many feature.
As for purpose of the script, I am trying to have the files residing on one server and have our technicians transfer those files to their clients so that we don't have to download each of those files from our file server using the client's computer. More like a drag and drop feature that we have used before from a different platform. Thank you.
- Beep-Beep9 years agoActive Contributor
Scripts do not allow the ability to transfer files.
You'd need to issue commands to something in order to do the copy.
Examples of methods:
Initiating a VPN connection then transferring from a fileshare.
Initiating an FTP download (Something like this: FTP through PowerShell )
Using an already available file transfer utility like SCP.
You can use the custom package option (One2Many Task). It will download all files you upload to the task. If you use a PowerShell script, you can refer to the random directory LMI puts the files in through the variable $PSScriptRoot as the script will be in the same directory.
#Rudimentary example #Uninstall old products since they cause new installations to abort (Get-WmiObject -Class Win32_Product | Where-Object { $_.Name -match 'Awesome Program'}).Uninstall() #Start Install Start-Process -Wait msiexec -ArgumentList "/i $PSScriptRoot\AwesomeProgram.msi TRANSFORMS=$PSScriptRoot\AwesomeProgramTransform.mst" #Install dependent program Start-Process -Wait msiexec -ArgumentList "/i $PSScriptRoot\DependentProgram.msi" #Install second dependent program Start-Process -Wait msiexec -ArgumentList "/i $PSScriptRoot\AnotherDependentAwesomeProgram.msi" #License the program Copy-Item -Path $PSScriptRoot\AwesomeLicense.lic -Destination "C:\Program Files (x86)\AwesomeProgram\LicenseFile.lic" -Force