a bit confused by the question. Do you mean testing the printing features of an application, or having silk itself create a batch file?
If you mean the former, I've done this before by creating a printer which has a port set as file, then I drive Silk to select this printer. If you are validating printed data and not concerned with format and the possible truncation of chars, the generic/text only driver provides decent files in ASCII format.
If you mean the latter, look up the HANDLE data type and the FileOpen, FileClose, and FileWriteLine functions. Don't have Silk on my home machine here so I may not have the function syntax exactly spelled.
Good luck and let me know if you need any clarify.
[This message has been edited by Matt Sullivan (edited 01-07-2000).]