I need to store target excel file to String value but sometimes there is no target excel file on specific folder. Than I’d like to proceed to next folder without error.
How to configure like below procedure?
Check each folder and store target excel file like below
So the target excel file name is different for each folder?? Will there be only one file in each folder or multiple file with the name you are looking for??
You can get the count , if the count is 0 then that folder does not has the target file you are looking for.
So the target excel file name is different for each folder?? Will there be only one file in each folder or multiple file with the name you are looking for??
In each folder there are multiple files and there is only 1 file that I targeted, normally filter with today date information .
You can get the count , if the count is 0 then that folder does not has the target file you are looking for.
Can I count with String value?
All files are stored like below
Hello~ Thank you for your comment!
Each folder’s file name is different, than should I set this logic for each folder?
Yellow remarked part is different for each folder.
fileArr is an Array of String which will contain the path of targeted excel files.
All the folders inside the “C:\P00432_FundReport\bank statement” will be scanned for the target file, and if they contain the file then it will be added to the array.