C# Copy a file to another location with a different name -
if conditions met, want copy file 1 directory without deleting original file. want set name of new file particular value.
i using c# , using fileinfo class. while have copyto method. not give me option set file name. , moveto method while allowing me rename file, deletes file in original location.
what best way go this?
system.io.file.copy(oldpathandname, newpathandname);
Comments
Post a Comment