Jones
11 months agoNew Contributor III
Dim String to use wildcard for dates
Hey all,
Pretty new to programming but have manage to get a file moving rule to work that basically moves a file from FileShareBatchHarvest to Application /Public structure for users to pickup.
...
- 11 months ago
Here's an example of replacing the date in your filename with today's date:
Dim fileToMove As String = "onestream_ifrs16_2023-06-15.txt" fileToMove = Regex.Replace(fileToMove, "\d{4}-\d{2}-\d{2}", DateTime.Now.ToString("yyyy-MM-dd"))