Reputation: 334
Is it possible to export an project with the command line to a XPO file? (AX 2009)
Upvotes: 2
Views: 1129
Reputation: 11544
Look at the classes C\SysStartupCmd*. I know there are some funky command line tools you can use, but the easiest thing I would think is to create your own class that "does" what you want, than extend the SysStartupCmd class.
A VERY good example is Classes\SysStartupCmdCompileAll. You only need one method, and it accepts a parameter, and you add your case in the C\SysStartupCmd\construct method.
Then to call it, you call the client from the command line like, "ax32.exe -startupcmd=compileall_+" where the "+" is your parameter, if you choose to have one. "compileall" is what is referenced in the construct of the SysStartupCmd, and then you create your class with one method to do what you would like.
Upvotes: 4