@echo off avidir %1 > files.txt echo %2 > width.txt echo %3 > height.txt avs2avi script.avs -l %4