Future-proofing tested app paths
Dim sPath
sPath = "C:\T\Path.txt"
'Override path settings if override file is available
if Utilities.FileExists(sPath) then
Set myFile = aqFile.OpenTextFile(sPath, aqFile.faRead, aqFile.ctANSI)
s = myFile.ReadLine()
TestedApps.AsureID.Path = s
s = myFile.ReadLine()
TestedApps.AsureID.FileName = s
Call myFile.Close()
else
if Sys.OSInfo.Windows64bit then
TestedApps.AsureID.Path = "C:\\Program Files (x86)\\XYZ\ProgramName\\"
Else
TestedApps.AsureID.Path = "C:\\Program Files\\XYZ\ProgramName\\"
end if
end if
*****
The file Path.txt has two lines, the first line is the path, the second, the name of the executable. This means I only have to change one text file if the path changes again, instead of opening up every project.