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\"
You may want to try the FileInfo.MoveTo method (code example at the following link):
http://msdn.microsoft.com/en-us/library/system.io.fileinfo.moveto.aspx