Forum Discussion
Hey everyone,
I am trying to see how I can use the Rescue's Script feature for a software upgrade my company will be running in a couple of months.
The upgrade would include tasks such as:
- Downloading an .exe file to the PC and installing it.
- Copying an .xml file into a specific directory in the Remote C Drive.
- Removing a couple of older files (Clean up) from the Remote PC.
Some trivia, I am working 100% with Win machines, mostly XP. And my target, is over 1500 Client Computers.
In short, if I were able to implement a Script, then all I would have to do is deploy a Calling Card, and as my customers connect, the activation of the script would take care of the software upgrade.
Any suggestions as to which language to use to make the best of LMI Rescue's script? XML? VB?
Thanks for your help and comments. :)
Basic but effective:
CHKDSK with F option on next reboot
-->copy the line below to a text doc and changde extension to .cmd or .bat
@ECHO OFF
ECHO Y|chkdsk c: /f
--> you can also use the /r switch
My 2 cents.
- MJ_Gravina14 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 Updateupdate.exe /RUN
Where is the resource file copied on the remotely controlled PC?
Anyone's help is appreciated !! :)
- gomobo7514 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.