|
|
File Replacement Utility freeware
download (5 kb)
Was designed for developers working on multi-module applications (like n-tier),
when they need to substitute some files on a daily basis, or even more often.
Sometimes developers and system administrators face the problem of necessary substitution
of multiple copies of the same file to the newer (or just specific) version, and
this task may take hours of valuable time.
File replacement command line utility (FR) is handling this task, by allowing you
to create executable batch (.bat or .cmd) files by only specifying file details
once. After that, each time you run this batch file, all files are replaced automatically
in no time.
Example:
Situation: You need to substitute file mylib.dll by the newly compiled
version you've got from the developer. There are multiple locations of that file
in your computer and you're unaware of where it can be. Searching and manual replacing
would take some time...
Action: using your favorite command line shell (cmd, far, norton commander...)
you are navigating to the directory where you'd prefer to store your batch files,
and (assuming the FR utility is located somewhere in one of the PATH directories)
run the command: fr mylib.dll
Result: You've got the file mylib.dll.bat, which contains all the shell
commands to replace old files with the new one. Every time you run this batch file,
the files are being replaced, so the only thing you need to do next time you want
to replace the same file - just run this batch.
In the example above, we were using a batch file fr.bat (comes together with filereplace.exe
utility itself), which is a shortcut to some most popular switches of FR. You can
do much more using command line switches of actual FR application (by modifying
fr.bat or creating new batches, or simply typing commands, whatever you prefer).
Command line switches
Usually, the complete command may look like this: fr.exe [filename] /b:X /d:X
/l /r /e
/b - batch file name. For example, /b:myfile.bat
/d - directory to start searching from. For example, /d:d:\
/l - (that's L, not I) - means (substitute by latest). Program
will find the latest file and it will be treated as latest.
/r - substitute read-only files. Files which were read-only at
the moment of search will be substituted, and new copies will retain the RO status.
/e - execute batch after compilation. Use it to save time, but
use it with care.
/x - delete batch file after execution. The last command of batch
file will delete it. If you rename the batch file after compilation, deletion won't
work.
You can combine /e and /x to do replacement job without saving the batch files anywhere.
Program searches for files on Fixed, Network, Removable and RAM drives.
System Requirements:
Microsoft .NET Framework 2.0
This program was tested on Windows XP, Server 2003 (including 64-bit edition), Server
2008, Windows Vista. It should also work fine on any computer that contains .NET
Framework 2.0.
Download File Replacement Utility
|