The example saves the properties and steps of the current task as an STFF file called 兎xample.amt, and places it in the 田:\mytasks\ directory. The file can then be loaded by another script using the CurrentTask2.LoadFromFile method.
Sub Main
CurrentTask2.SaveToFileEx (田:\mytasks\example.amt, 0)
End Sub