Compressed Files and ModifyPE
As you work with replacing Windows files, or even just plain adding files to the CD, you may recieve a few errors about copying files or find that the file you're replacing used to be compressed.
A little program called ModifyPE will fix the checksums of files that have been edited, and prevent the dreaded "File was not copied correctly" error.
Makecab will recompress the modified files, or if you're just plaining adding files, into the .??_ equivalent ( .dll to .dl_ ). This will also compress the file sizes.
Expand will decompress the compressed files so that they're back to their normal form.
Let's go through and fix those copy errors, and recompress - expand those files.
ModifyPE | Makecab | Expand
» ModifyPE
First thing you'll need to do, is download the ModifyPE executable from here.
Now comes a decision of placement. You could place the downloaded file in any directory, or for ease of use in your System32 directory.
- Open up a command prompt window, by typing CMD in the Run box
- Do you know the full path to your file? If you don't feel like typing in the entire path, then simply navigate to the folder. If you have the ability to open a command prompt by right clicking on a folder, that's even easier.
- Once in your folder, type at the prompt:
modifype.exe filename.xxx -c
Replacing filename.xxx with your filename, or if needed the the complete path then your filename ( C:\winntbbu.dll for the screenshot below).
- If you did this correctly, you'll recieve the same response as in the above windows.
» Makecab
Makecab is a standard command on Windows XP systems. If for some reason that you do not have the file (you'll know when you try the below steps), then download this file, and save it in your System32 directory.
- Open up the Run box and again and type CMD
- Do you know the full path to your file? If you don't feel like typing in the entire path, then simply navigate to the folder. If you have the ability to open a command prompt by right clicking on a folder, that's even easier.
- Once in your folder, type at the prompt:
makecab.exe filename.xxx
Replacing filename.xxx with your filename, or if needed the the complete path then your filename ( C:\winntbbu.dll for the screenshot below).
- If you did this correctly, you'll recieve the same response as in the above windows. The compressed file will have the same name as the file you entered (with the exception that the last letter of the extension will be a _) in the same directory as the inputted file.
» Expand
Expand, like Makecab, is also a standard Windows command, and like makecab, is also available for download here.
- Open up the Run box and again and type CMD
- Do you know the full path to your file? If you don't feel like typing in the entire path, then simply navigate to the folder. If you have the ability to open a command prompt by right clicking on a folder, that's even easier.
- Once in your folder, type at the prompt:
expand.exe -r filename.xxx
Replacing filename.xxx with your filename, or if needed the the complete path then your filename ( C:\winntbbu.dll for the screenshot below).
- If you did this correctly, you'll recieve the same response as in the above windows. The expanded file with the full extension will be found in the same directory as the source file.
Submitted by Alanoll.
Last updated 2006-09-21 23:13:12 by jdoe
Last updated 2006-09-21 23:13:12 by jdoe