====== ECMCommander Command Line Switches ====== Source: Sysworx/ELOApplications/ECMCommander/ECMCommander.UI.Extended/Program.cs ===== General Rules ===== * Switch prefixes -, -- and / are accepted. * Parsing is case-insensitive (arguments are normalized to lower-case in code). * A parameter file can replace/extend direct CLI arguments. ===== Parameter File ===== ^ Switch ^ Value ^ Description ^ | parameterfile | | Reads all arguments from the given text file (one argument per line). | | ignoreparameterfile | - | Disables loading of the default or explicit parameter file. | Default parameter file (if not disabled): .params.txt ===== Functional Modes ===== ^ Switch ^ Value ^ Description ^ | --mode | dsnexport | Opens the data-source export dialog and exits afterwards. | | help or ? | - | Shows a help message box and exits. | | viewer | - | Enables viewer mode flag. | ===== Login / Connection ===== ^ Switch ^ Value ^ Description ^ | profile / profilename | | Preselects login profile name. | | ixurl | | Direct IndexServer URL for login. | | username | | User name for direct login. | | password | | Password for direct login. | | autologin | - | Enables automatic login behavior in login dialog. | | sso | - | Sets SSO flag (currently prepared in code). | | scanclient | - | Enables scan client mode. | | scanclientconfig | | Loads scan client config file and enables scan client mode. | | scanpaths | | Overrides scan paths in scan client configuration. | | configpath | | Overrides ConnectionProfileManager.ConfigPath. | ===== Instance / Startup Behavior ===== ^ Switch ^ Value ^ Description ^ | singleinstance | - | Allows only one instance per user context. | | runas | | User context for single-instance checking. | | hidden | - | Starts in hidden mode. | | kill | - | Kills other ECMCommander instances. | | scriptindirect | - | Enables indirect script mode. | ===== Logging / Environment ===== ^ Switch ^ Value ^ Description ^ | nolog | - | Disables log file initialization. | | logfile | | Sets explicit log file path. | | bingkey | | Sets environment variable BINGAPIKEY. | | vlclibpath | | Sets environment variable VLCLIBPATH. | ===== REST / URL ACL ===== ^ Switch ^ Value ^ Description ^ | restport | | Sets REST server port (default: 13915). | | urlacl | - | Registers REST URL ACL via RestServerSettings.RegisterApp and exits. | ===== COM Registration ===== ^ Switch ^ Value ^ Description ^ | register | - | Registers COM server and exits (unless noexit/registernoexit is also set). | | noexit / registernoexit | - | Keep application running after COM registration. | | unregister | - | Reserved/placeholder path in current code (returns immediately). | | progid | | Explicit ProgID for COM registration. | | clsid | | Explicit CLSID for COM registration. | | currentuser | - | Writes COM registration under current user hive. | ===== Example ===== ECMCommander.exe -ixurl http://server/ix -username admin -password secret -autologin -singleinstance