Showing posts with label File Utilities. Show all posts
Showing posts with label File Utilities. Show all posts

Friday, February 25, 2022

File Splitter and Merger Tool for Transmission



What's File Splitter and Merger Tool?
It's an command line utility to truncate a big file into small pieces, later to be assembled.
Useful for sending big attachment files in mails, copying a big file into floppies etc.



How does it work?
During Disassemble, input for the source file, destination folder and truncation size are accepted. Later the file is split into multiple files with the name filrname.nn where n is the file number in the destination folder.  e.g., Test.data.00,  Test.data.01 etc

During Assemble, input for the destination file that will be assembled, source folder that contains truncated files are  accepted. Later the destination file that will be assembled back from the multiple  truncated files from source folder .

How to use it?
let's say if we want to break a big file d:\data\data.mdb of 10MB into eleven(11) 950K files:
open a Command window and type the command below.

FileSplitterMerger D d:\data\data.mdb  950000
you can see that 11 files d:\data\data.mdb.00 ..... d:\data\data.mdb.10  are created.

To assemble back, open a Command window and type 
FileSplitterMerger A  d:\data\data.mdb  
you can see the d:\data\data.mdb created after the merge


Source and Binaries can be found here.


Thursday, February 17, 2022

Script to Zip and Unzip Files using Window shell



Often times applications require files to be zipped to a .zip file and extract files from the same. makezip_unzip.vbs  uses Windows shell do this easily.



Create Zip File Example

  1. Arrange all folders, sub folders and files matching zip file structure inside a "stage" folder. Example, d:\temp\reports
  2. Execute  in command window
           makezip_unzip.vbs   "d:\temp\reports"   "d:\reports.zip"

if not exist, d:\reports.zip will be created.

Extract from Zip file Example

Execute in command window
           makezip_unzip.vbs    "d:\reports.zip"   "d:\temp\reports"
If not exist, d:\temp\reports folder will be created to receive files from the .zip file. 
Note that full path must be supplied to the arguments.



Source and Binaries can be found here.


Friday, February 4, 2022

Innovative File organizer with Duplicates finder and Hierarchical viewer


No matter how big the hard drive's capacity gets, the prevalent issue of lack of storage remains.
When there is an urgent need to free up space, getting a fair idea of  the storage distribution becomes paramount.
FileOrganiser tool attempts to fill the gap by providing a hierarchical  view of the storage distribution along with options to sort data in multiple ways.

File organizer with Duplicate file finder has following features.

Folder View
Lists folders and files in a single screen hierarchal order along with their disk sizes and file count.
  • The files can be viewed hierarchically  and can be sorted by File count, File Size and File Names.
  • The file size can be viewed in different disk size units such as KB, MB and GB
  • Selected Files can be deleted or path can be exported to file or copied to another folder.
  • Files can be selected individually or entire folder can be selected using toggle selection
  • Width of file display can be changed
Duplicates View
Multiple copies of the same file such as pictures gets spread across the disk. It also becomes important to keep track from security Point of View.
The user interface is same as compare folder view discussed below except duplicates are searched in the same folder.

Compare Folders View
Compares two different folders and lists duplicate files in hierarchical order  along with individual files.

Duplicate Hierarchical View

Duplicate Flat View

Non Duplicate Hierarchical view
  • The duplicates files can be viewed hierarchically  or flat and can be sorted by File count, File Size and File Names.
  • The file size can be viewed in different disk size units such as KB, MB and GB
  • Selected Files can be deleted or path can be exported to file or copied to another folder.
  • Files can be selected individually or entire folder can be selected using toggle selection
  • Width of file display can be changed
Export
Exports files along with their unique MD2 values. Useful for large directories where faster processing can be done using SQL based queries.
Individual entries are separated by |


Source and Binaries can be found here.



Sunday, January 30, 2022

A Backup, Restore, and Update Tool with a refined approach



Let's face it, over the period number of files grow, change, removed, copied and moved etc. Keeping track of these will be a challenge unless they are backed up and tracked to restore when needed.

The Backup and Restore Tool discussed here has following features:

  • Create Backup collections and add / remove folders that will be backed up.
  • Add exclude folder list such as system folders. e.g., c:\window
  • Track files by CRC so that only a single copy of that file is stored.
  • Files are backed up to a password protected archive.
  • Each archive's metadata is also password protected.
  • During backup, an integrated view is presented where each folder is indicated as archived and partial , modified or changed.
  • During backup, an integrated view is presented where each file is indicated as archived and modified 
  • During restore, an integrated view is presented where each folder is indicated as same, deleted and changed 
  • During restore, an integrated view is presented where each file is indicated as same, deleted and changed 

Main
The following diagram illustrates the backup and Restore tool.

New
Creates new archive. The GUI is shown below.


Operation
  1. Enter a name for the archive. e.g., TechBlog
  2. select a location  for the archive. A new folder will be created under this folder to store contents of the archive. c:\archive\TechBlog.
  3. Enter a description for the archive
  4. Select folders to backup. e.g., d:\techblog. The checkbox of the folder to be backed up should be checked to take the backup.
  5. Folders that needs to be excluded from backup such as system folder can be specified in exclude.txt under the collection folder.
  6. After Clicking OK, user is asked to enter a password for the archive. This password is used for storing metadata of the archive.


Edit
Once the archive is created, edit can be used to add additional folders to backup or select deselect folders for taking backup.



Backup Tool

A collection is a set of folders that needs to be archived in multiple backups. Each backup contains a snapshot of the archived folders at the time backup was taken. 



Operation
  1. First select folders to backup as discussed above and Click Backup button
  2. An integrated view is presented to select files/folders and status of the file and folder items. 
The status of a file item can be as below.
  • New - New file. Never backed up.
  • Changed - Existing file changed after last backup. 
  • Archived - Existing file that didn't change since last backup.
Similarly the status of a folder item can be as below.
  • New New Folder. Never backed up.
  • Partial Existing folder structure changed since last backup. 
  • Archived  No changes since last backup

3. Finally, Check the checkboxes to choose the files that needs to be backed up. Click Backup Now button to start taking backups. The backups will be saved into a internally generated password protected 7zip file. 

 Restore Tool

The restore tool can be used to restore files from previously archived backup.

Operation
Select a backup from the dropdown list to restore.
Files are synched with disk if "sync with folders" is checked. This will compare the crc of the existing files with the previous backups and determine which files needed to be restored. 
Each file can have three states -  Same, Changed or Deleted.
  • Same means the file has not changed hence no restoration is needed.
  • Changed means the file has changed hence restoration is needed
  • Deleted means the file is deleted  hence restoration is needed
In the same way, A folder can have one of the three states -  Same, Changed or Deleted.
  • Same means the folder has not changed.
  • Changed means one or more files in the folder has changed hence restoration is needed.
  • Deleted means the entire folder is deleted  hence restoration is needed.

By default all the files from the previous backups are listed. If  changes only is checked, only files from the selected backup are listed.

If Hide Same is checked, all the unchanged items are removed from the display.

Export exports file  items listed to a csv file along with the crc.

Refresh Resyncs with disk for latest changes.

Finally, Check the checkboxes to choose the files that needs to be restored. Click Restore button to restore. As shown below, the files can be saved to a different folder or to the same original folder where they existed.



 Update Tool

It's a hybrid of Backup Tool and Restore Tool. The Update tool can be used to update previously archived backup. Folders and Files can be added and removed from the archive without having to use Backup Tool. This is helpful incase the original backup is not available.


Operation
Select a backup
Expand the tree and select the folder that receives files
Drag and drop files. after acknowledgement  files will be added automatically.




Source and Binaries can be found here.