|
Answer» Hi All,
I need some urgent help..
I have one file files.lst, it will CONTAIN FILENAMES,dialy the number of filenames will be change.
let us ASSUME that this file.lst has FOLLOWING file names
a.dat \b.dat c.dat
I need a batch file , it has to read this file names from filename.lst and has to check a.dat file is there or not in c:\informatica\srcfiles folder
like that it has to check all the file names mentioned in file.lst
could you please help me to write a batch file
Thanks
Mahesh GoliYou seem to have given three input file names Files.lst, File.lst and Filename.lst so uncertain that this is what you want:
Code: [Select]@echo off cls
setlocal
set path=c:\informatica\srcfiles\
for /f "delims=" %%# in (files.lst) do ( if not exist %path%\%%# (echo ----- %%# does NOT exist in %path% ----- ) ELSE ( echo +++++ %%# DOES exist in %path% +++++ ) ) endlocal
|