Thanks friend, I found information about command line to Dynamics Ax 4.0, but the version that We Use is 5.0
http://msdn.microsoft.com/en-us/library/aa569653 (AX.10).aspx
Another example command line but with an xml file. The XML file specifies the class and methods to use. The result of importing and executing is written to a log file or shown to the user in Infolog.
http://msdn.microsoft.com/en-us/library/aa496462 (AX.10).aspx
http://msdn.microsoft.com/en-us/library/aa548627 (v=AX.10).aspx
Executing with no user interaction is useful for any automation of customer tasks, in particular during the test phase.
Create an XML file
On the Microsoft Dynamics AX client computer, create a file of type XML.
Add tags to XML file specifying:
Microsoft Dynamics AX version.
Name and location of the log file.
The XPO file containing the class to be imported.
The method to be run.
Note
The XML file syntax is described in the documentation for the SysAutoRun Class.
ax32.exe –StartupCmd=AutoRun_ c:\folder\filename .XML
Sample XML file
This is an example of an XML file that can be used to import data silently.
<?xml version="1.0" encoding="utf-8" ?>
<AxaptaAutoRun version="4.0" logFile="AxaptaAutoRun_BVTRun.log">
<XpoImport file="\share\TestCases\CreateClass.xpo" />
<Run type="class" name="CreateClass" method="main" />
</AxaptaAutoRun>