This example displays the system directory in a message box.
Sub Main
MsgBox AutoMate2.SystemDir
End Sub