Synchronizer Sync = new Synchronizer(); foreach(string file in OFD.FileNames) { string path = @""; path = OFD.FileName; string name = @""; name = OFD.SafeFileName; Sync.MediaSync(path, name, true); }
string Filepath = @"Music\" + file; if (!File.Exists(Filepath)) { File.Copy(path, Filepath); // I get the exception right here } else if (File.Exists(Filepath)) { File.Delete(Filepath); File.Copy(path, Filepath); }
overwrite
true
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)