File Replicator v1.2.1 by Tyler Retelle (darklight_tr) Built with AutoHotkey v1.0.48.05 20090925 Info ---- File Replicator is a program that searches for a specified file within a specified root folder and replaces it with another copy of the file. This is useful for updating a file that is located in multiple folders to a newer version. Consult the File Replicator Manual for full feature details and instructions on how to use this script. OS Support: Windows XP, Windows Vista, Windows 7 Tested On: Windows XP, Windows 7 Bugs/Issues ----------- -File Replicator v0.1.0 (BETA 1) or higher must be run under a user with admin privileges in order to function properly. This behavior is by design. -File Replicator v0.1.0 (BETA 1) or higher will close any existing Command Prompt windows before starting a search or replacement operation. This is to prevent the script from hanging during the operation. -The Update Check feature may not work when used behind a proxy server that requires authentication. -If a search operation is cancelled you may not be able to immediately run another search. If you wait a few seconds you will be able to run the search again. -The URL option only supports the http:// format due to engine restrictions. I will look at adding https:// in the future, but ftp:// support is unlikely. -The manual cannot be viewed if it is located on a network drive/share. This is a limitation imposed on Compiled HTML Help files by Microsoft for security reasons, but you can bypass the security in order to view the file from a network drive/share. See http://support.microsoft.com/kb/896054 for details. As an alternative, a HTML version of the manual can be downloaded from tylerretelle.com. Please report any bugs/issues you encounter and I will do my best to fix them. Contact Info ------------ Website: www.tylerretelle.com E-mail: darklight_tr@yahoo.com License ------- Please see the License section of the manual or http://www.tylerretelle.com/documentation/license.html for details. Copyright Info -------------- SmartGUI Creator v4.0 was used to create all GUI interfaces. Thanks to Rajat for the awesome utility! Compile_AHK was used to compile File Replicator v0.1.0 (BETA 1) and higher. Thanks to ladiko for the awesome utility! The download progress bar code uses a modified version of the RegistryCallback version posted by Sean on the AutoHotkey forum. (http://www.autohotkey.com/forum/topic19475.html) Helpinator FREE was used to create the help files. (http://www.helpinator.com) The script icon is from the Pinvoke Diagona icon pack. (http://www.pinvoke.com/) Change Log ---------- v1.2.1 (02/05/10) ------ -Engine upgraded to AutoHotkey v1.0.48.05. -Added Windows 7 to the supported and tested OS lists. -Removed Windows Vista from the tested OS list because I no longer have any PCs running Windows Vista to test on. The OS will remain on the supported list. -Includes v2 Revision 2.1.0 of the File Replicator Manual. -Installer upgraded to Script Setup Utility v2.6.1. -Made several changes to how version information is interpreted and displayed. v1.2.0 (07/24/09) ------ -Added a new About GUI, which replaces the old About dialog. (GUI RV7) -Includes v2 Revision 2.0.0 of the File Replicator Manual. -Added an EULA to the installer and manual. The new license is a much more elaborate version than the previous license I used, but as always my scripts are still free to use. -Installer upgraded to Script Setup Utility v2.2.1. v1.1.2 (07/09/09) ------ -Removed the minimize button from the Check for Updates GUI. (GUI RV6.3) v1.1.1 (07/07/09) ------ -Updated readme (this file) to correct a couple omissions in the v1.1.0 readme. -Updated File Replicator version to 1.1.1. No other changes made to the script. v1.1.0 (06/03/09) ------ -Added URL support for the source file. (http:// format ONLY due to engine restrictions; will investigate https:// for possible addition at a later time) -Added GUI support for URLs. (GUI RV6) -Engine upgraded to AutoHotkey v1.0.48.03. This version offers some speed improvements and bug fixes. -Added a new Check for Updates GUI, which replaces the old Check for Updates dialog. (GUI RV5) -Fixed an instance where the Check for Updates function would not work correctly if the update server is down. -Changed how the AutoHotkey version is displayed in the About dialog. -Changed the GUI background color to a lighter color for better contrast and readability. (GUI RV5.1) -Added an option to the Help menu to take the user to tylerretelle.com, home of File Replicator. -Fixed an issue with the UAC function in Windows Vista. -Changed the Save Log dialog to allow you to select the file name. Before the file name could not be changed. (GUI RV5.2) -Changed the extension used by the Save Log dialog from .txt to .log. -The log file contents now reflect what is displayed in the results dialog. -Hotkeys now only function when the script window has focus. -Removed some unnecessary code. -Changed the processing order of several commands to ensure proper execution. -Infinite progress bars now have a different progress appearance when compared to standard progress bars. (GUI RV6.1) -The download progress bar in the Check for Updates GUI now reflects actual progress. (GUI RV6.2) -Includes v2 Revision 1.0.0 of the File Replicator Manual, which is now CHM based. (previous HTML version is now web only) -Installer upgraded to Script Setup Utility v2.0.1, which is based on Inno Setup. -Improved and simplified several script operations. -Fixed an issue where the Advanced Mode radio button would not function properly. (Options GUI) -When activated (clicked on), the Internal AutoHotkey radio button now checks the Confirm each replacement checkbox. (Options GUI) v1.0.0 (01/01/09) ------ -The replacement operation now terminates if the search.txt file is deleted before the operation or while the operation is in progress. (Internal AutoHotkey Only) -Converted to a more efficient method for reading the search.txt file. (Internal AutoHotkey Only) v0.6.0 (12/22/08) - RC0 ------ -Hotkeys are now suspended when File Replicator is running another operation. -Removed several redundant commands. -Added keyboard shortcuts to several GUI buttons. -Modified how the search.txt and replace.txt files are deleted. -You can now save the search and replace log files to a specified directory. -Includes v1 Revision 2.0.0 of the File Replicator Manual. -Fixed a bug in the replacement error detection. (Internal AutoHotkey Only) v0.5.0 (12/05/08) - BETA 5 ------ -Changed the text for Search and Replace to Search then Replace. (GUI RV3.1) -If an error is encountered during a file replacement you are now presented with a Cancel/Try Again/Continue dialog. In v1 BETA 4.1.0 the file was skipped instead. (Internal AutoHotkey Only) -By default, you now receive a Yes/No/Cancel confirmation dialog for each replacement. You can disabled this feature in the Options GUI. (Internal AutoHotkey Only) - Thanks to mouser at DonationCoder for the idea -Fixed a minor text error in the Options GUI. (GUI RV3.2) -Added a checkbox to enable/disable replacement confirmations in the Options GUI. (GUI RV4) -Changed the Replace Mode GUI references from replaced to processed. -Includes v1 Revision 1.1.0 of the File Replicator Manual. v0.4.1 (11/25/08) - BETA 4b ------ -Fixed an issue where the search temporary file may not be deleted even when you specify it to be deleted. -The listbox redraw is now more efficient. -Fixed an issue with erroneous characters displaying in the listbox in Windows XP. -Added error detection to the replacement operation. (Internal AutoHotkey Only) v0.4.0.1 (11/24/08) - BETA 4a -------- -Removed an unnecessary function. -Corrected several variable names. -Changed the detection order for the OS and Admin rights. (OS is now detected first) -Added a clearing variable to Check for Updates to ensure that it works properly. -Fixed a couple issues where dialog boxes would not retain focus. -Fixed a heading error with one of the dialog boxes. v0.4.0 (11/21/08) - BETA 4 ------ -Added a button in the Options GUI which displayed additional info regarding the difference between Replace Command options. (GUI RV3) -Added the ability to unlock the destination folder and source file textboxes for direct editing. (Advanced Mode Only; GUI RV3) -Fixed an issue where a placeholder entry would be displayed in the Search and/or Replace results window. -Added the ability to open the Map Network Drive dialog from within File Replicator (Tools->Map Network Drive). (GUI RV3) -File Replicator now properly handles the situation where a selected drive is removed and a search operation is then started on the drive. -Includes v1 Revision 1.0.0 of the File Replicator Manual. v0.3.2 (11/14/08) - BETA 3b ------ -Fixed the horribly broken Windows REPLACE disable functionality that was first introduced in v1 BETA 3.1.0. The code now works as expected. -Fixed an issue where some saved settings were accidentally cleared if the Remember This Setting box was unchecked. v0.3.1 (11/07/08) - BETA 3a ------ -The Windows REPLACE command is now disabled if File Replicator is running in Standard Mode. -Added shortcut keys for most functions. v0.3.0 (11/05/08) - BETA 3 ------ -If the source file is contained in the search directory, it is now excluded from the search results. -Renamed the Search/Replace Command groupbox to Replace Command. (GUI RV2) -Added a Set to Defaults button to the Options GUI. (GUI RV2) -Added checkboxes to Options GUI that allow File Replicator to delete the search.txt and replace.txt files when they are no longer needed. These options are defaulted to off (Checked). (GUI RV2) -Enlarged the Options GUI interface to accomodate the new GUI features. (GUI RV2) -File Replicator now supports two replacement methods - Internal AHK and Windows REPLACE. The Internal AHK command is the default and recommended command to use. The Windows REPLACE command is offered as an alternative in case you prefer that command. -The Internal AHK command excludes the source file from the replacement operation if it is contained in the destination directory. The Windows REPLACE command does not support this functionality and is not allowed for this type of operation. -The Internal AHK progress bar reflects actual replacement progress. The Windows REPLACE progress bar only shows that an operation is in progress. -Added a warning when switching from the Internal AHK command to the Windows REPLACE command. (Standard Mode Only) -Added a horizontal scrollbar to the results listbox. (GUI RV2.1) -Fixed an issue where the replacement operation would fail if the directory path containing the source file has any spaces. v0.2.0.1 (10/13/08) - BETA 2a -------- -Changed the progress bar colors. -Removed the version information from the Main GUI title and the tray icon. The version information may be found in Help->About File Replicator. v0.2.0 (10/09/08) - BETA 2 ------ -First Public Release. -Added a new GUI interface for the search and replacement operations. (GUI RV1) -Added support for the new GUI features. -Added Standard and Advanced Mode support. -Added Search Type selection support. -Adjusted the List Box search result text that is displayed when no instances are found. -Made the search/replacement GUI text more consistent. -The pre-search GUI selection confirmation dialog now only displays in Standard Mode. -Added the Search Type to both the pre-search GUI selection confirmation dialog as well as the List Box starting text. -If you cancel a search operation, you receive a confirmation dialog. (Standard Mode Only) -Replacement operations can no longer be cancelled. -Added a pre-replacement operation warning dialog regarding the lack of cancellation. (Standard Mode Only) -The GUI is now disabled during replacement operations. v0.1.0 (10/03/08) - BETA 1 ------ -Initial Internal Release.