Skip to main content

April 15, 2025

Command-Line Arguments

Application Profiler supports command-line arguments that you can use to specify configuration settings or to allow profiling an application in an unattended or semiunattended manner.

Unless indicated differently, all command-line arguments are optional.

Command-Line Arguments for Configuration Settings

ArgumentDescription
/FileOpt LevelSets the file system optimization level to the specified value. Passing a level of 0 disables file system optimization.
/RegOpt LevelSets the registry optimization level to the specified value. Passing a level of 0 disables registry optimization.
/Deep ValueConfigures the Use Deepest Registry Path setting. Passing a value of 0 disables the setting, 1 enables it.
/HKLM ValueConfigures the Support HKLM setting. Passing a value of 0 disables the setting, 1 enables it.
/FileExcl ValueConfigures the Enable File Exclusions setting. Passing a value of 0 disables the setting, 1 enables it.
/RegExcl ValueConfigures the Enable Registry Exclusions setting. Passing a value of 0 disables the setting, 1 enables it.
/AutoExcl ValueConfigures the Auto Exclude Sections setting. Passing a value of 0 disables the setting, 1 enables it.
/SaveIcon ValueConfigures the Save Icon setting. Passing a value of 0 disables the setting, 1 enables it.
/DefaultPath PathConfigures the Default Save Path setting. Passing an empty path disables the setting.
/LoadProject PathLoads a project.
/ResetResets all configuration settings to their default values.

Command-Line Arguments for Unattended and Semiattended Use

ArgumentDescription
/EXE ExeThe fully qualified path of the application to analyze. If you use this argument, you must also specify /FlexConfig.
/SelectEXEDisplays a dialog box to select the application to analyze. If you use this argument, you must also specify /FlexConfig.
/FlexConfig PathThe fully qualified path of the Flex configuration file that must be created. If you use this argument, you must also specify /EXE or /SelectEXE.
/StartIn PathSpecifies the start folder of the application.
/Parameter ParamSpecifies an argument to the application. You can use the /Parameter argument multiple times.
/PreDefIndicates that a predefined settings archive must be created based on the generated Flex configuration file.
/AutoCloseTimeout TimeoutIndicates that Application Profiler must close the application after the specified number of seconds.
/AutoCloseRetry RetryCountUse this argument to set the number of retries if the application does not close after the auto-close timeout. If you use this argument, you must also specify /AutoCloseTimeout.
/ShowResultWithout this argument, Application Profiler runs fully unattended. If you specify/ShowResult, the main user interface appears when the profiling session has ended.
/SaveProject PathSaves a project.

Was this page helpful?

Provide feedback for this topic

Was this topic helpful?

Please do not include any personal or confidential information.

Generating link…