Forum Discussion
Anonymous
14 years agoHello Markus,
You can use the script below:
Please refer to the OSInfo.Windows64bit and aqEnvironment.GetEnvironmentVariable articles to learn more about the methods used in the code.
You can use the script below:
function GetProgramFilesPath()
{
var os32bit, os64bit, Path
os32bit = aqEnvironment.GetEnvironmentVariable("ProgramFiles");
os64bit= aqEnvironment.GetEnvironmentVariable("ProgramFiles", true);
if (Sys.OSInfo.Windows64bit)
Path = os64bit;
else
Path = os32bit;
return Path;
}
Please refer to the OSInfo.Windows64bit and aqEnvironment.GetEnvironmentVariable articles to learn more about the methods used in the code.
Related Content
- 3 months ago
- 2 years ago
- 11 years ago
Recent Discussions
- 3 days ago
- 3 days ago
- 6 days ago