Difference between revisions of "Find and Replace Template"

From JRiverWiki
Jump to: navigation, search
(Examples)
Line 25: Line 25:
 
The Find & Replace template searches against the existing full filename path, and replaces that text with exactly what you enter in the Replace With box.  So, if the originally selected filenames are:
 
The Find & Replace template searches against the existing full filename path, and replaces that text with exactly what you enter in the Replace With box.  So, if the originally selected filenames are:
  
<code>C:\Users\USERNAME\Music\B\The Beatles\Sgt. Pepper's Lonely Hearts Club Band\01 - Sgt. Pepper's Lonely Hearts Club Band.flac
+
<tt>C:\Users\USERNAME\Music\B\The Beatles\Sgt. Pepper's Lonely Hearts Club Band\01 - Sgt. Pepper's Lonely Hearts Club Band.flac</tt>
C:\Users\USERNAME\Music\B\The Beatles\Sgt. Pepper's Lonely Hearts Club Band\02 - With a Little Help from My Friends.flac
+
C:\Users\USERNAME\Music\B\The Beatles\Sgt. Pepper's Lonely Hearts Club Band\02 - With a Little Help from My Friends.flac</tt>
C:\Users\USERNAME\Music\B\The Beatles\Sgt. Pepper's Lonely Hearts Club Band\03 - Lucy in the Sky with Diamonds.flac
+
C:\Users\USERNAME\Music\B\The Beatles\Sgt. Pepper's Lonely Hearts Club Band\03 - Lucy in the Sky with Diamonds.flac</tt>
C:\Users\USERNAME\Music\B\The Beatles\Sgt. Pepper's Lonely Hearts Club Band\04 - Getting Better.flac</code>
+
C:\Users\USERNAME\Music\B\The Beatles\Sgt. Pepper's Lonely Hearts Club Band\04 - Getting Better.flac</code></tt>
  
 
And you want to move them to your M drive in the Audio folder, you could enter the following in the template:
 
And you want to move them to your M drive in the Audio folder, you could enter the following in the template:
Line 35: Line 35:
  
 
When applied, the filenames will become:
 
When applied, the filenames will become:
<code>M:\Audio\Music\B\The Beatles\Sgt. Pepper's Lonely Hearts Club Band\01 - Sgt. Pepper's Lonely Hearts Club Band.flac
+
<tt>M:\Audio\Music\B\The Beatles\Sgt. Pepper's Lonely Hearts Club Band\01 - Sgt. Pepper's Lonely Hearts Club Band.flac</tt>
M:\Audio\Music\B\The Beatles\Sgt. Pepper's Lonely Hearts Club Band\02 - With a Little Help from My Friends.flac
+
<tt>M:\Audio\Music\B\The Beatles\Sgt. Pepper's Lonely Hearts Club Band\02 - With a Little Help from My Friends.flac</tt>
M:\Audio\Music\B\The Beatles\Sgt. Pepper's Lonely Hearts Club Band\03 - Lucy in the Sky with Diamonds.flac
+
<tt>M:\Audio\Music\B\The Beatles\Sgt. Pepper's Lonely Hearts Club Band\03 - Lucy in the Sky with Diamonds.flac</tt>
M:\Audio\Music\B\The Beatles\Sgt. Pepper's Lonely Hearts Club Band\04 - Getting Better.flac</code>
+
<tt>M:\Audio\Music\B\The Beatles\Sgt. Pepper's Lonely Hearts Club Band\04 - Getting Better.flac</code></tt>
  
 
If the mode is set to one of the Rename or Copy options, then the files will be moved or copied to the new destination, while preserving the existing file and folder structure.
 
If the mode is set to one of the Rename or Copy options, then the files will be moved or copied to the new destination, while preserving the existing file and folder structure.

Revision as of 23:09, 27 May 2015

The Find & Replace Template set to copy files to the Desktop.
This article is a incomplete. It is missing detail about critical functions, or contains a number of red links. You can help the JRiver Wiki by expanding it.

The Find & Replace Template is used to alter the existing file path by searching for text in the original filename, and replacing it with new text. It is often most useful when moving large sets of files from one disk or storage location to another. Unlike the Filename and Directories Templates, the Find & Replace Template is used to transform the existing filename.

For example, you might want to:

  • move all of the files from Drive E to Drive M, or
  • move all of the files from /Users/<USERNAME>/Music over to /Users/Shared/Media/Audio/Music
  • copy a set of files from a network drive to a local disk, while preserving the original filename and directory structure

The Find & Replace Template is perfect for these kinds of tasks, where you want to preserve the existing file and folder structure on disk, but alter it in specific ways.

Use

  • The Find & Replace Template can be combined with the other Rename, Move, and Copy Files Templates, but usually it is simplest to use it by itself.
  • If the Find & Replace Template is not enabled, then only the other Templates will be used.
  • Be sure to carefully check the Preview Panel before committing any changes to disk. The Find & Replace Template does exactly what you tell it to do, and you could set it up to overwrite all of the selected files with a single filename.
  • Unlike the other Rename, Move, and Copy Files Templates, the Find & Replace Template can be used to alter file extensions. You can search for .mp3 and replace it with .flac for example. This usually works best when combined with the tool's Update database to point to new location mode.
  • To use, enter the exact text you'd like to search for in the Find What box, and the exact text you'd like it to be replaced with in the Replace With box. The Preview Panel will show the results immediately in the New column.
  • The search is not case sensitive. The case of the replacement text will be preserved.

Examples

The Find & Replace template searches against the existing full filename path, and replaces that text with exactly what you enter in the Replace With box. So, if the originally selected filenames are:

C:\Users\USERNAME\Music\B\The Beatles\Sgt. Pepper's Lonely Hearts Club Band\01 - Sgt. Pepper's Lonely Hearts Club Band.flac C:\Users\USERNAME\Music\B\The Beatles\Sgt. Pepper's Lonely Hearts Club Band\02 - With a Little Help from My Friends.flac</tt> C:\Users\USERNAME\Music\B\The Beatles\Sgt. Pepper's Lonely Hearts Club Band\03 - Lucy in the Sky with Diamonds.flac</tt> C:\Users\USERNAME\Music\B\The Beatles\Sgt. Pepper's Lonely Hearts Club Band\04 - Getting Better.flac</code></tt>

And you want to move them to your M drive in the Audio folder, you could enter the following in the template:

Find What: C:\Users\USERNAME\
Replace With: M:\Audio\

When applied, the filenames will become: M:\Audio\Music\B\The Beatles\Sgt. Pepper's Lonely Hearts Club Band\01 - Sgt. Pepper's Lonely Hearts Club Band.flac M:\Audio\Music\B\The Beatles\Sgt. Pepper's Lonely Hearts Club Band\02 - With a Little Help from My Friends.flac M:\Audio\Music\B\The Beatles\Sgt. Pepper's Lonely Hearts Club Band\03 - Lucy in the Sky with Diamonds.flac M:\Audio\Music\B\The Beatles\Sgt. Pepper's Lonely Hearts Club Band\04 - Getting Better.flac</code>

If the mode is set to one of the Rename or Copy options, then the files will be moved or copied to the new destination, while preserving the existing file and folder structure.

The same system works for other media types, and other types of replacements.