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.
Table 1. Command-Line Arguments for Configuration Settings
Argument Description
/FileOpt Level Sets the file system optimization level to the specified value. Passing a level of 0 disables file system optimization.
/RegOpt Level Sets the registry optimization level to the specified value. Passing a level of 0 disables registry optimization.
/Deep Value Configures the Use Deepest Registry Path setting. Passing a value of 0 disables the setting, 1 enables it.
/HKLM Value Configures the Support HKLM setting. Passing a value of 0 disables the setting, 1 enables it.
/FileExcl Value Configures the Enable File Exclusions setting. Passing a value of 0 disables the setting, 1 enables it.
/RegExcl Value Configures the Enable Registry Exclusions setting. Passing a value of 0 disables the setting, 1 enables it.
/AutoExcl Value Configures the Auto Exclude Sections setting. Passing a value of 0 disables the setting, 1 enables it.
/SaveIcon Value Configures the Save Icon setting. Passing a value of 0 disables the setting, 1 enables it.
/DefaultPath Path Configures the Default Save Path setting. Passing an empty path disables the setting.
/LoadProject Path Loads a project.
/Reset Resets all configuration settings to their default values.
Table 2. Command-Line Arguments for Unattended and Semiattended Use
Argument Description
/EXE Exe The fully qualified path of the application to analyze. If you use this argument, you must also specify /FlexConfig.
/SelectEXE Displays a dialog box to select the application to analyze. If you use this argument, you must also specify /FlexConfig.
/FlexConfig Path The 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 Path Specifies the start folder of the application.
/Parameter Param Specifies an argument to the application. You can use the /Parameter argument multiple times.
/PreDef Indicates that a predefined settings archive must be created based on the generated Flex configuration file.
/AutoCloseTimeout Timeout Indicates that Application Profiler must close the application after the specified number of seconds.
/AutoCloseRetry RetryCount Use 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.
/ShowResult Without this argument, Application Profiler runs fully unattended. If you specify/ShowResult, the main user interface appears when the profiling session has ended.
/SaveProject Path Saves a project.