private void OnCopyNew(object obj) { var index = SourceFullPath.LastIndexOf("\\") + 1; var fileName = SourceFullPath.Substring(index, SourceFullPath.Length - index); //string fileName = "testdb.bak"; //String sourceFullPath = Path.Combine(SelectedPath, fileName); String targetFullPath = Path.Combine(SelectedPath, fileName); ////FileUtilities.CreateDirectoryIfNotExist(Path.GetDirectoryName(targetFullPath)); ProgressShow = true; //FileUtilities.CopyFileEx(sourceFullPath, targetFullPath, token); _hcdzClient.CopyFileEx(SourceFullPath, targetFullPath); }