Thursday, September 7, 2017

Batch script to check if file exist or not


This is a simple windows batch script to check if a file exists or  not



ECHO CHECKING IF FILE EXISTS
set FILEEXISTS=FILE_NAME                          REM ENTER FILENAME HERE
if exist %FILEEXISTS% (DO SOMETHING)
ELSE (DO SOEMTHING ELSE )

No comments:

Post a Comment