![]() ![]() The underlying Silverstack copy and verification engine takes over and does the heavy lifting for you. The interface is pretty much self-explanatory: Choose your source, select one or more destinations, done. ![]() While designing Silverstack Offload Manager, the goal was to create a streamlined and easy-to-use, yet powerful and trustworthy companion for creating backups of footage on set. It uses the same core engine as the full Pomfort Silverstack suite of applications, trusted by professional DITs for years. ![]() Hopefully only once, because from that point on you would install some kind of professional backup software for offloading your footage, right? Silverstack Offload Manager is exactly that: A professional software for backing up data to multiple destinations, complete with dedicated verification and reporting. You might have experienced this kind of scenario once. Imagine you just shot that once-in-a-lifetime take, only to realize back at the hotel that every file from your backup drive is corrupt or missing and the original media has been reformatted multiple times since then. MessageBox.Show("The File is copy To " + Totb.Streamlined UI, attached media on top and tasks both pending and completed below. String files = System.IO.Directory.GetFiles(sourcePath) įileName = System.IO.Path.GetFileName(s) ĭestFile = System.IO.Path.Combine(targetPath, fileName) If (System.IO.Directory.Exists(sourcePath)) System.IO.File.Copy(sourceFile, destFile, true) MessageBox.Show("The File is Create in "+" "+Totb.Text) when The User Write The New Folder It Will Create System.IO.Directory.CreateDirectory(targetPath) If (!System.IO.Directory.Exists(targetPath)) String destFile = System.IO.Path.Combine(targetPath, fileName) String sourceFile = System.IO.Path.Combine(sourcePath, fileName) MessageBox.Show("Ples You Should Write The Second Text Box") MessageBox.Show("Ples You Should Write The Third Text Box") MessageBox.Show("Ples You Should Write All Text Box") TO Copy The Folder I Use Two Text Box To Know The Place Of Folder And Anther Text Box To Know What The Folder To Copy It And This Is The Code MessageBox.Show("The File is Create in The Place Of The Programe If you Don't Write The Place Of copy And You write Only Name Of Folder") // It Is To Help The User TO Know However, the rename code could be adapted if the OP desired to rename the source file after it has been copied to a new location. throw new IOException("Failed to rename file after copying, because destination file exists!") Ĭommented out the "rename" code, because File.Copy can already copy and rename in one step, as astander noted correctly in the comments. File.Move(myDestinationFileAndPath, myRenamedDestinationFileAndPath) if (!File.Exists(myRenamedDestinationFileAndPath)) Rename the file if the destination file doesn't exist. However, this code could be adapted to rename the original file after copying EDIT: as "astander" notes correctly, this step is not necessary, as File.Copy can rename already. Copy the file (specify true or false to overwrite or not overwrite the destination file if it exists.įile.Copy(mySourceFileAndPath, myDestinationFileAndPath, ) You could also use File.Copy to copy and File.Move to rename it afterwords. ![]()
0 Comments
Leave a Reply. |