1 | initial version |
The process for verifying the presence of file(s) in a particular folder using Windows batch is as follows:
@echo off set /p folder="Enter folder path: " if exist "%folder%\" ( echo Folder exists set /p file="Enter file name: " if exist "%folder%\%file%" ( echo File exists ) else ( echo File not found ) ) else ( echo Folder not found )