if exist c:\path\to\your\file.txt ( rem file exists ) else ( rem file does not exist )For example, delete a file if it exists
if exist c:\temp\mytemp.tmp ( del c:\temp\mytemp.tmp )
if exist c:\path\to\your\file.txt ( rem file exists ) else ( rem file does not exist )For example, delete a file if it exists
if exist c:\temp\mytemp.tmp ( del c:\temp\mytemp.tmp )