Forum Discussion
howie_
12 years agoContributor
Out of curiosity, are either the machine names or user names unique? If they are you might be able to create individual ini files for each scenario, and then use Sys.HostName or Sys.UserName (possibly in combination with Sys.DomainName) in order to identify the correct file...
switch(Sys.HostName)
{
case "EN_Win7x32": iniName = "english.ini"; break;
case "FR_Win7x64": iniName = "french.ini"; break;
}
var path = <relative path to directory embedded within your project> + "\\" + iniName;
or, hypothetically, if you named the ini files to match the machine names you could just do this:
var path = <relative path> + "\\" + Sys.HostName + ".ini";
switch(Sys.HostName)
{
case "EN_Win7x32": iniName = "english.ini"; break;
case "FR_Win7x64": iniName = "french.ini"; break;
}
var path = <relative path to directory embedded within your project> + "\\" + iniName;
or, hypothetically, if you named the ini files to match the machine names you could just do this:
var path = <relative path> + "\\" + Sys.HostName + ".ini";