Here is how you can hide files from the prying eyes of others. This can be done by using the copy command in Command Prompt. The format of the command to merge files isĀ

The parameter /b tells the command to consider files as Binary. An example is “copy /b 1.jpg+2.zip 3.jpg” which will produce an image named 3.jpg after merging the image 1.jpg and compressed archive 2.zip The file is now treated as an Image of JPEG type. It’s always better to use two files as this will enable you to recover both the files (else you may need a hex editor to split the files).When you want to open the zipped file change the extension of the merged file from .jpg to .zip (if Windows Zip utility won’t open the file use another archive tool such as WinRAR or WinZIP).
The trick can be done with most of the file types. You will not able to recover the second file by changing the extension if both files are of same type, that is both JPG or both ZIP. A HEX editor can be used to find the header of second file, you may copy the data further onwards to a new file to get the lost file.
These are the screen shots of my merging process

Files Merged (check out the file sizes of all the three files )

The Image file after merging has been renamed to .rar (extension of second file) and has been opened using WinRAR

If you enjoyed this article, you might also like...
- How to shutdown, restart, logoff using the command prompt
- Batch files to automate tasks in Windows environment – tutorial
- How to delete undeletable files
- Add a context menu option to list all files in a folder and save it as text file
- Host Files – local DNS lookup
- Download files from esnips.com without flash player



