Batch file API