The GoTo Community is currently experiencing some technical issues affecting new posts and comments. We are actively working with our service provider and apologize for the frustration.
Forum Discussion
Rob H
17 years agoRetired GoTo Contributor
Rescue Script Repository Thread- Share your scripts
Welcome to the new LogMeIn Community. One of the things that we would like to foster is the sharing of lots of great ideas and neat tips and tricks. I thought that I would get the ball rolling by pub...
MJ_Gravina
15 years agoNew Contributor
Pretty basic Scripts question:
I am scripting to copy a file (.exe) from my C:\update.exe (locally, listed as such on the Resources in the Script manager), but in the BATCH file, I do not know how to reference the file.
Tried using
@ECHO OFF
ECHO Running LinkUp v2.02 Update
update.exe /RUN
Where is the resource file copied on the remotely controlled PC?
Anyone's help is appreciated !! :)
gomobo75
15 years agoActive Contributor
I did a test using your code and the file was stored in this folder:
C:\Users\[User Account Name here]\AppData\Local\Temp\LMIR0001.tmp\Script_6\update.exe
It seemed to run OK using another .exe file. No errors.
This was a Windows 7 x64 System. I think it will not be consistent across different version of Windows; The LMIRxxxx.tmp folder is stored under C:\Windows\Temp\ in Windows XP, so if you plan to include it in a script it you should use system variables (http://en.wikipedia.org/wiki/Environment_variable)
Also note, that if there are previous LMIRxxxx#.tmp folders under the system TEMP folder left over by previous connections to the computer, your active LMIRxxxx#.tmp folder is not going to end in 1 but with another number.
Hope this helps.