I need to move all files from source folder to destination folder. How can I easily extract file name from file path name?
string newPath = \"C:\\\\NewPath\"
Try the following:
string newPathForFile = Path.Combine(newPath, Path.GetFileName(filePath));