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

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -