Rename Files Dialog

The Rename Files dialog is available from the Commands menu in the main window. This dialog renames files on your hard disk using the FAR file list in the main window. Many files can be renamed very quickly so make sure you initially check the preview checkbox (checked by default).

This command does not alter folder names, just filenames. It works on files in the FAR file list (main window). If the Preview checkbox is checked you will see a preview before each change. Initially the new filename is set to %name%.%ext% which represents the current filename.

Controls
Rename to Initially set to the original file name represented by %name%.%ext%. %name% and %ext% are replaced by the current file Name and Ext as each file in the FAR file list is examined.
  • Example 1: Change all file extensions to ".XML" enter %name%.XML
  • Example 2: Prefix all files with "BMC_" enter BMC_%name%.%ext%
Replace all spaces with underscores
  • Example 1: A filename "Fred Mercury 1.htm" would be renamed to "Fred_Mercury_1.htm".

Note: Using spaces in a filename is not good practice for Web and Help files.

Make lowercase When checked all characters in the filename are forced to lowercase.
Find & Replace Text Allows you to perform find and replace on the filename. The Find text is not case sensitive.
  • Example 1: Find "_BEL" replace with "" will change file name "File_Bel_tools.htm" to "File_tools.htm".

Note that you can also use a single * wildchar in the Find text. This allows you to find text from start to end text. EG. "BC*F" would match "bcdef" part of "abcdefg.htm".

  • Example 2: Find "_*_" replace with "-act-" will change file name "File_Bel_tools.htm" to "File-act-tools.htm".

A trailing * would remove the end of the string after and including the match (see example 3). A leading * would remove the start of the string up to and including the match (example 4).

  • Example 3: Find "_*" replace with "-act.htm" will change file name "File_Bel_tools.htm" to "File-act.htm".
  • Example 4: Find "*_Bel" replace with "Act-Bel" will change file name "File_BEL_tools.htm" to "Act-Bel_tools.htm".
Preview each change When checked you will be prompted before each change is made. You should always start with this option checked (the default) so you can preview the first few changes. Then when satisfied with the changes click the All button on the prompt dialog to continue on without prompts. Or click Cancel on the prompt dialog to abort the rest of the renaming.
Range Default is to rename all items in the FAR file list. If one or more item are selected in the FAR file list you can select "Selected Files" to only rename the selected files.
OK, Cancel, Help Click OK to start renaming files; Cancel to close the dialog; Help to show this help.

The FAR file list columns "Replacements" and "Matches" are set to show you what files have been altered. Match = 1 and Replace = 0 indicates you were prompted to change the file however answered No.


http://www.helpware.net/