Inhaltsverzeichnis

ECMCommander Command Line Switches

Source: Sysworx/ELOApplications/ECMCommander/ECMCommander.UI.Extended/Program.cs

General Rules

Parameter File

Switch Value Description
parameterfile <path> 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):

<ECMCommander.exe>.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 <name> Preselects login profile name.
ixurl <url> Direct IndexServer URL for login.
username <name> User name for direct login.
password <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 <configFile> Loads scan client config file and enables scan client mode.
scanpaths <pathList> Overrides scan paths in scan client configuration.
configpath <path> Overrides ConnectionProfileManager.ConfigPath.

Instance / Startup Behavior

Switch Value Description
singleinstance - Allows only one instance per user context.
runas <userName> 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 <filePath> Sets explicit log file path.
bingkey <key> Sets environment variable BINGAPIKEY.
vlclibpath <path> Sets environment variable VLCLIBPATH.

REST / URL ACL

Switch Value Description
restport <port> 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 <progId> Explicit ProgID for COM registration.
clsid <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