[en] Read this section to learn how to use command prompt to:
-
[en] Start or stop Automation services.
-
[en] Control which configurations are loaded.
-
[en] Control which triggers are active.
注意
[en] Make sure you are running Command Prompt in elevated mode (with administrative permissions). Right-click cmd.exe
and select Run as Administrator.
[en] Starting and Stopping the Services
[en] To start both services, use the following commands:
[en] net start NiceLabelProxyService 10
[en] net start NiceLabelAutomationService 10
[en] If you want to open configuration file when the Service is started, use:
[en] net start NiceLabelAutomationService 10 [Configuration]
[en] For example:
[en] net start NiceLabelAutomationService 10 "c:\Project\configuration.MISX"
[en] To stop services, use the following commands:
[en] net stop NiceLabelProxyService 10
[en] net stop NiceLabelAutomationService 10
[en] Managing the Configurations and Triggers
[en] NiceLabel Automation service can be controlled using Automation Manager command-line parameters. Use the following general syntax:
[en] NiceLabelAutomationManager.exe COMMAND Configuration [
TriggerName] [/SHOWUI]
注意
[en] Include full path to the configuration name. Do not use the file name alone.
[en] To ADD configuration
[en] The provided configuration gets loaded into service. No trigger is started. If you include the /SHOWUI
parameter, Automation Manager UI is started.
[en] NiceLabelAutomationManager.exe ADD c:\Project\configuration.MISX /SHOWUI
[en] To RELOAD configuration
[en] The provided configuration gets reloaded into service. The running status of all triggers is preserved. Reloading the configuration forces the refresh of all files cached for this configuration. For more information, see section Caching Files. If you include the /SHOWUI
parameter, Automation Manager UI is started.
[en] NiceLabelAutomationManager.exe RELOAD c:\Project\configuration.MISX /SHOWUI
[en] To REMOVE configuration
[en] The provided configuration and all of its triggers are unloaded from service.
[en] NiceLabelAutomationManager.exe REMOVE c:\Project\configuration.MISX
[en] To START a trigger
[en] The referenced trigger is started in the already loaded configuration.
[en] NiceLabelAutomationManager.exe START c:\Project\configuration.MISX CSVTrigger
[en] To STOP a trigger
[en] The referenced trigger is stopped in the already loaded configuration.
[en] NiceLabelAutomationManager.exe STOP c:\Project\configuration.MISX CSVTrigger
[en] Status Codes
[en] Status codes provide feedback about the command-line execution. To enable the status codes return, use the following command-line syntax:
[en] start /wait NiceLabelAutomationManager.exe COMMAND Configuration [TriggerName] [/SHOWUI]
[en] The status codes are captured in the errorlevel
system variable. To see the status code, execute the following command:
[en] echo %errorlevel%
[en] List of status codes:
[en] Status Code |
[en] Description |
0 |
[en] No error occurred |
100 |
[en] Configuration file name not found |
101 |
[en] Configuration cannot be loaded |
200 |
[en] Trigger not found |
201 |
[en] Trigger cannot start |
[en] Providing User Credentials for Application Authentication
[en] If you have configured the LMS Enterprise or LMS Pro system to use Application Authentication (not Windows Authentication), you have to provide user credentials with sufficient permissions to manage the configurations and triggers.
[en] There are two command-line parameters you can use:
-
[en] -USER:
[username]
. Where[username]
is a placeholder for the actual user name. -
[en] -PASSWORD:
[password]
. Where[password]
is a placeholder for the actual password.