I want to read each and every line from my csv file in Batch file, Here I am searching for employeeid in D:\parameters.csv, and a csv file with that name should be present in the directory:
csv file content: Employee1,Alex Employee2,Tariq
and I want to search employee1.csv and employee2.csv in my directory
for /f "tokens=1 skip=1 delims=, " %%B in ('type "D:\Employeedata.csv"') do (
if not exist D:\%%B.csv (
echo Please Keep %%B.csv file at D:\
)
)
By Doing, I can find employee1.csv,employee2.csv from above code
How to check both files exists or not, If any one of the file does not exists in directory, I want to end the batch file