Anyone can help to share an approach on how to search my Computer all files which starts with same 8 Characters and put them in separate folders :
Example :
20220122_File03.xlsx
20220122_File04.xlsx
20220123_File01.xlsx
20220123_File02.xlsx
Those 2 first Files need to be copied to same folder as there 8 1st characters are the same , let’s say : Folder20220122, and the last 2, will be copied in another folder let say : Folder20220123
Thanks @Robinnavinraj_S , It’s Working as desired, I’m not sure if we can make it more smart :
1- We make input string as var ( depends on 8 characters , no need to put them inside formula, just check all similar files with same prefix and put them inside different folders)
2- We include sub-folder in source folder : “Folder = new DirectoryInfo(“your source folder”)”