Check if all files exist in a directory batch scripting -
i trying write batch script(i beginner) allow me go directory , check if 5 files exist. these files are: eim_account.dat eim_contact.dat eim_employee.dat eim_accnt_dtl.dat eim_fn_asset.dat far have written , need help continuing here:
@echo off set dir1=c:\testscript\ set logfile=c:\testscript\logfile.log set res=false /f %%a in ('dir /b %dir1%eim_*.dat' /o:d /t:c) ( )
try this;
@echo off %%a in (eim_account.dat eim_contact.dat eim_employee.dat eim_accnt_dtl.dat eim_fn_asset.dat) ( if not exist c:\testscript\%%a echo %%a doesnt exist ) pause
i assumed c:\testscript\
*.dat files are.
file batch-file directory
No comments:
Post a Comment