Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# copy file to directory

string fileToCopy = "c:myFoldermyFile.txt";
string destinationDirectory = "c:myDestinationFolder";

File.Copy(fileToCopy, destinationDirectory + Path.GetFileName(fileToCopy));
 
PREVIOUS NEXT
Tagged: #copy #file #directory
ADD COMMENT
Topic
Name
6+4 =