This is an example of what your ilinit file should contain:
axlCmdRegister("tidy folder" 'tidyFolder ?cmdType "general")
tidyFolder.autoload = "tidyFolder.il"
To run this routine I need to type tidy folder in the console window.
If you want a routine to run every time you start Allegro you should look at the axlTriggerSet command. This is a command that I have in our ilinit file:
tait_OpenAllegroTrigger is a Skill function.