Category: System/File-Management
The File Splitter
Download:
Operation System: Windows All License: Size: 22 KB Date: 2010-04-18 22:12:51
Well, I was working simultaneously on a USB-less NIC-less desktop and on a CD-less laptop, and I needed the FXCop utility, which was in the desktop, for the laptop. The only possible way to do so was to split it in the desktop, so as to copy its parts to the laptop (none of them is connected to internet), and then merge them back. I went back some years earlier, when I was fond of Borland C and MS DOS, and I wrote a utility in C. I first tried it on a MP3 file in order to test if it works really, then passed to a packaged installer (because it checks integrity of the file), and finally I decided to rewrite it in C#...The FileSplitter application will read sequentially blocks of 8 Kb or 16 Kb from the file to split, and writes it into the first part file "0.part" in a directory named the same name as the name of the file to split, created in the directory selected using "Browse" button. It writes the first part until it reaches the desired end, then it creates another one "1.part" and so on until it reaches the end of the file to split. For merging, the FileSplitter reads every "part" file in the selected directory and merges them incrementally. It is now done asynchronously using threads. The user can cancel any process (the File/Directory in progress of creation is deleted).
|