Forum Discussion
tristaanogre
11 years agoEsteemed Contributor
In a way yes... and in a way no. From what I understood (and correct me if I'm wrong), you would, previously, manually open the text file, read what's there, and manually enter it on the machine in question.
What Storages.INI or Storages.XML does for you is allows you to, within the scripts, read and write the contents of the files to automate the transfer of information from one machine to another. It removes a good chunk of the manual stuff and automates it.
So, for example, you could have a routine on your Master box that looks something like this where the names Slave1 and Slave2 are actually replaced with the machine names of the different remove boxes. Also, your SetOption calls could still get the values from your entries on the UserForm:
What Storages.INI or Storages.XML does for you is allows you to, within the scripts, read and write the contents of the files to automate the transfer of information from one machine to another. It removes a good chunk of the manual stuff and automates it.
So, for example, you could have a routine on your Master box that looks something like this where the names Slave1 and Slave2 are actually replaced with the machine names of the different remove boxes. Also, your SetOption calls could still get the values from your entries on the UserForm:
function CreateXMLTransfer()
{
var XMLFile
XMLFile = Storages.XML(Project.ConfigPath + "//Script//Test.xml")
var Section = XMLFile.GetSubSection("Slave1")
Section.SetOption("TestItem1", "Value1")
Section = XMLFile.GetSubSection("Slave2")
Section.SetOption("TestItem1", "Value2")
XMLFile.Save()
}
Then, on your remote machines, you'd do something like this.
function GetXMLSettings()
{
var XMLFile = Storages.XML(Project.ConfigPath + "//Script//Test.xml")
var Section = XMLFile.GetSubSection(Sys.HostName)
Project.Variables.test = Section.GetOption("TestItem1")
XMLFile.Save()
}
The effect would be what you're looking for... values set by the master project and then transfered to the slave projects. They would then persist on the slave projects for you to reference as well as for any re-executions.