Use the following code to record to an .asf file:
Encoder.MaxSize = 5000 ' 5 MB file maximum size
Encoder.RecordFileName = "c:\Sample.asf"
Encoder.RecordStart
To stop a recording:
Encoder.RecordStop
You can start and stop a recording at any time during an encoding session.
For more discussion on using the other methods and properties, see the Encoder Automation Reference.
© 1996-1998 Microsoft Corporation. All rights reserved.