This example displays the windows directory in a message box.
Sub Main
MsgBox AutoMate2.WindowsDir
End Sub