User has to place the input file (CSV or excel )on daily basis with zip format and it name contains GST Hold Report 20231228. filename will contain todays date format as yyyy/MM/dd. every day data has changed file name accordingly. How can achieve this to BOT find and pick exact of todays date file? Sample input is attached for your reference.
Assign
FilesArray = Directory.GetFiles(DirectoryPath, "GST Hold Report " + DateTime.Now.ToString("yyyyMMdd") + "*.zip")
For Each file In FileArray
If file.Contains(DateTime.Now.ToString("yyyyMMdd"))
\\Process to do
End If