Batch handle text files