
Frequently Asked Questions (FAQs)
These FAQs aim to help you understand PatchOnClick better, and quickly solve any difficulties that you might encounter.
Q: What is a patch file?
A: The patch file is a "differences" file produced by PatchOnClick that has the extension .poc.
Think of the original file in the illustration below as the reference file for creating patches. The modified file is the new file that is constantly being updated or changed. The patch file contains the differences between the original file and the modified file:

When you patch a file you will also have the original reference file. By using the patch file you will create a new patched file which is identical to the modified file:

Q: Can you give me an example of when I would patch a file?
A: Let's say you frequently draft and distribute a word document.
After you have drafted and distributed a first draft of your document, you would then save that original draft as the reference file in order to create patches from it at a later date. As you modify the word document, you will save the modified document as a separate modified file. Each time you wish to distribute a new draft of your word document, you would make a new patch file using the reference file and the modified file.
Q: What files do I need to create a patch file?
A: You need two files to create a patch a file. The original file and the modified file. Using PatchOnClick you will create a new patch file which you may then distribute.
Q: What files do I need to patch a file?
A: You need two files to patch a file. The original file and the patch file. By applying the patch to the original file using PatchOnClick you will create a new modified file.
Q: Should I update the reference file?
A: It makes sense to create and distribute a new reference file now and again as the patch may become large in size with frequent and large updates. As a guide consider making a new reference file if your patch is over half the size of the original file, although there are no restrictions to the size of a patch.
The advantage of using PatchOnClick is to speed the distribution process. If the patch file becomes larger than the original file the distribution of the file is not efficient.
Q: Can I undo a patch?
A: No. Once you have performed a patch the process cannot be undone. We therefore recommend that you create a backup of the file you are patching in the event you wish to recover it at a later date. 2BrightSparks, the developers of OnClick Utilities also produce SyncBack Freeware and SyncBackSE.
Q: Can anyone patch a file if I send them the .poc file?
A: To patch a file the program PatchOnClick, part of OnClick Utilities, must be installed. The great news is that there is a freeware version of PatchOnClick so anyone using Windows can easily create and patch files.
Q: How can I tell whether the file I have patched is identical to the modified source file now that I have patched it?
A: To verify your file exactly matches the original modified source file run hash on click to check it's hash value using HashOnClick(part of OnClick Utilities). The sender of the patch file can also send you the hash value along with the patch file so you can check this.
Q: Can I use Command Line Parameters with PatchOnClick?
A: Only the registered version of PatchOnClick accepts command line parameters. If you pass just a single filename then it is assumed that you want to patch a file and the filename given is the patch file, e. g.:
PatchOnClick. exe "C:\My Documents\patch. poc"
You are then prompted on which file to patch and where to save the patched file. You can patch a file without being prompted by passing the following parameters:
PatchOnClick. exe -p "file to patch" "patch filename" "patched filename"
This will read the file to patch and the patch file, and produce the patched file. To create a patch file without being prompted:
PatchOnClick. exe -c "original filename" "modified filename" "patch filename"
This will compare the original and modified files and produce a patch file.
Q: Does PatchOnClick patch any file?
A: Yes. PatchOnClick can patch any Windows file, however it is not possible to significantly reduce the size of image file patches.
Q: My patch file is bigger than the modified file! Why?
A: Some file types do not lend themselves well to patching, e. g. JPG images and other compressed formats. This is because a slight change to the file can radically change the contents of the file. When PatchOnClick has created a patch file it will tell you the size of that original file, modified file, and patch file. You can then decide whether to use the patch file or not.
Q: How can I further reduce the size of the patch file?
A: You could compress it into a Zip file using one of the many free compression programs. If you want it compressed and encrypted you can use the free EncryptOnClick utility from 2BrightSparks.
Q: Are patch files compressed?
A: No. See the question above "How can I further reduce the size of the patch file?" for further details.
Q: Are patch files encrypted?
A: No. See the question above "How can I further reduce the size of the patch file?" for further details.
All Content: 2BrightSparks Pte Ltd © 2003-2012