CommandLine (Standard 8 Module Reference)
7/8/2014
Review the applicable Embedded Core modules and any examples for the CommandLine setting in Windows Embedded 8 Standard (Standard 8).
This setting contains a string with a maximum length of 1024 characters that specifies synchronous and asynchronous command to run when the user logs on to the device.
Modules
The following table shows the modules that you can apply this setting to. In Image Configuration Editor (ICE), you can follow the corresponding path to set this setting for a module.
Module |
Path |
Setting Description |
---|---|---|
Products/Embedded Core/Shell-Setup/FirstLogonCommands/SynchronousCommand/CommandLine |
Specifies the path to the command to run the first time a user logs on. This setting can be empty. |
|
Products/Embedded Core/Shell-Setup/LogonCommands/AsynchronousCommand/CommandLine |
Specifies the path to the asynchronous command to run when the user logs on. |
XML Example
These XML examples shows how to specify the CommandLine setting.
FirstLogonCommands
The following XML example shows how to specify a command to run after first logon.
<FirstLogonCommands>
<SynchronousCommand wcm:action="add">
<CommandLine>c:\synccommands\command1.exe</CommandLine>
<Description>Description_of_command1</Description
<Order>1</Order>
</SynchronousCommand>
</FirstLogonCommands>
For more examples of first logon commands, see FirstLogonCommands XML Example.
LogonCommands
The following XML example shows examples of how to set two logon commands. The RequiresUserInput setting has no effect for either of the commands.
<LogonCommands>
<AsynchronousCommand wcm:action="add">
<CommandLine>c:asynccommands\command1.exe</CommandLine>
<Description>Description_of_command1</Description>
<Order>1</Order>
<RequiresUserInput>true</RequiresUserInput>
</AsynchronousCommand>
<AsynchronousCommand wcm:action="add">
<CommandLine>c:asynccommands\command2.exe</CommandLine>
<Description>Description_of_command2</Description>
<Order>2</Order>
<RequiresUserInput>false</RequiresUserInput>
</AsynchronousCommand>
</LogonCommands>