@echo off rename error150.log %1.log if not exist %1.log echo ERROR did not create %1.log :end