CHECKING THE EXISTANCE OF FILE AND DISPLAYING IT.
@echo off CLS REM CHECKING THE EXISTANCE OF FILE AND DISPLAYING IT. REM BATCH FILE STARTS.............. ECHO THIS IS BATCH FILE SHOWING THE STRING COMPARISON. IF EXIST %1 GOTO TRUE GOTO FALSE GOTO EXIT :TRUE TYPE "%1%" GOTO EXIT :FALSE COPY CON %1 TYPE %1 GOTO EXIT :EXIT @ECHO ON