- To check file exist or not
Output may defer according to your system folder so, write the code and execute/run your batch file
@echo off
if exist F:\info.txt (echo "File exists") else (echo "File doesn't exist")
File exists
If in your system file is not their as specified location, then it will print "File doesn't exist"
ProgramAfter writing the code, Double-click your batch file, it will check for file in specified location
:: cmd to check file exist or not
if exist [FILE_PATHNAME] (TRUE_STATEMENT) else (FALSE_STATEMENT)
Concept
Coming Soon !
QuickStrength does not come from winning. Your struggles develop your strengths.