Copy a file from the given path
Hi,
I have a path like this: C:\Vulpes\xyz.xml
I wanted to copy given path file into a folder in h:\darma\
Give me some ideas to do
Darma
Answers (1)
0
This should do it:
string sourcePath = @"C:\Vulpes\xyz.xml";
string destPath = @"h:\darma\" + Path.GetFileName(sourcePath);
System.IO.File.Copy(sourcePath, destPath);
Accepted