@echo off REM quick and dirty fake touch REM WARNING does not handle options, multiple files, etc. if not ".." == ".%1." ( if exist %1 ( copy /b %1 +,, >NUL ) else ( type NUL > %1 ) )