Next Topic

Previous Topic

Book Contents

executeFileInDirectoryPath()

Same as executeFile() except the location of the .exe file is located at the path returned from a getDirectoryPathFromRegistry() command.

If Execute as the logged on user is selected, then a credential must be specified by running either the impersonateUser() or useCredential() command before this command. If run Execute as the system account is selected, execution is restricted to the agent's system level access.

Example

getDirectoryPathFromRegistry(HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Adobe\Adobe Acrobat\9.0\Installer\Acrodist.exe", "All Operating System, "Halt on Fail")
executeFileInDirectoryPath(" ", " ", "Execute as System and Continue", "All Operating Systems", "Halt on Fail")