|
Answer» Hi, PLEASE help,i dont know about Dos scripting i require a script Excel.csv file contains 12 columns.in that 8th and 9th columns contains .pdf FILES. like
8th column --------------- abc_unfillable.pdf def_unfillable.pdf ghk_unfillable.pdf lmn_unfillable.pdf
9th column -------------- abc_fillable.pdf def_fillable.pdf ghk_fillable.pdf lmn_fillable.pdf now requirement is when we sent this file to server, it check's the file name for eg. abc_fillable.pdf , if it EXIST then do not pull abc_unfillable.pdf from the file server and pull only abc_fillable.pdf and if abc_fillable.pdf does not exist then pull abc_unfillable.pdf. Hi,For this i am getting half of code,
for /f "tokens=1-9* delims=," %%a in (C:\Files\Push.csv) do IF EXIST Z:\%%i (copy Z:\%%i %workfolder%%%i) Else Z:\%%h(copy D:\%%h %workfolder%%%h) But this code is WORKING as its pull only abc_fillable.pdf.But Requirement is if abc_fillable.pdf is not avilable in Z ,it's pull only abc_unfillable.pdf. please can any one help me----------
|