Compile and schedule time for AOT Node in MSD axapta

To comple AOT Node by code you can try following code in job.

 treeNode treeNd;  
 treeNd= TreeNode::findNode(#FormsPath);  

If you want to schedule time to compile AOT then you can do following things.

To create a scheduled task You require to access "Start -> All programs -> Accessories -> System Tools -> Scheduled tasks" and Point the Scheduled Task Wizard to "Ax32.exe" this exe must be in your "client\bin directory" and enter users details like user ID, password and time etc

You can either Axapta login window or by entering Network accout name available under Tools -> Options -> General Tab in Axapta.

I hope this will work well for you.