Looking For File With A Specific Naming Convention EveryDay

Finally I got it working, I did not read your earlier post about File Exists being obsolte.

I added this below script under If condition and also changed after archive to archive"," (Previously was using archive"+")

Script:

System.IO.Directory.GetFiles("\epic-nas.et1157.epichosted.com\xfr\nonprd\toODB\Claims\PBClaims\CRD\TEST1\archive",“EPICTRAN_”+Now.ToString(“yyyyMMdd”)+“*.txt”).Any()

1 Like