If we want to move file to the directory that does not exist,and if we perform a File.Move,it will result return an error shows that 'The path is not exist'. So,we have to create a new directory using System.IO.Directory.CreateDirectory. Here is an e…