we would keep in mind that there are multiple options to achieve the task. However, we recommend combining techniques to achieve
- short codes
- readabillty
An example:
strFolder =
"\epic-nas.et1157.epichosted.com\xfr\nonprd\toODB\Claims\PBClaims\CRD\TEST1\archive\"
Condition:
new System.IO.DirectoryInfo("strFolder ").Getfiles("EPICTRAN_*.txt").Any(Function (x) x.Name.Contains(Now.toString("yyyyMMdd")))
so we can avoid using Path.GetFileName, Path.GetExtension
So it is up to you @nirmit.kansagra on what will better match to your skillsets