I have a small issue that’s driving me crazy because I don’t know how to fix it!
Let me give you an example : The file that I am trying to move is named “Nicusor.jpg” , while the folder that I am trying to move it to is called “Nicusor Dan”. The thing that makes this task a little complicated is that this being a framework project, I have multiple files and folders named in the same manner!
There are 8 folders in total with full names ( just like the example above) and 25 files (images) that need to be moved in the appropiate folder! What I tried doing was storing all the folder names inside an array, like arrFolders = Directory.GetDirectories(“…\ProjectOutputFolder”) and then checking if arrFolders.Contains(name.ToString)
But I don’t know how to move the file in the proper folder after checking!