Another way to copy files over in C#

Member

vivien_maggio

by vivien_maggio , in category: C/C++ , 2 months ago

Another way to copy files over

1
2
3
4
5
6
7
8
9
var src = "c:\src";
var dest = "c:\dest";
var cmp = CompressionLevel.NoCompression;
var zip = source_folder + ".zip";

ZipFile.CreateFromDirectory(src, zip, cmp, includeBaseDirectory: false);
ZipFile.ExtractToDirectory(zip, dest_folder);

File.Delete(zip);


Facebook Twitter LinkedIn Telegram Whatsapp Pocket

no answers