$LANG = "VBScript"

cr = Chr(13)

haAbortOnError

haSetCaptureFileName "C:\capture.txt"
haCaptureBegin

haWaitForPrompt "prompt>"
haTypeText "some command"&cr

'something to tell it when the data is complete here
haWaitForString "done"

haCaptureControl 5

haDisconnectSession
haTerminate

To execute this sample save the above code as a text file. In HyperACCESS click Automation->Run, and select the text file. This script could also be set to run automatically by clicking Properties->File Usage.

Return to sample script index