Rename, Move, and Copy Files
- 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.
Warning!
This tool moves files on disk, and can change a lot of data with a single action, so go slowly and try a few files before you do very many. Having a recent Library Backup on hand is strongly recommended. |
This is a powerful Library Tool that can be used to move, rename, and create copies of your files using their Library Fields (metadata tags) to create a file structure on disk. This is also a great way to get your media organized into a central location on your hard disk. However, use this feature with care, because it can move files on the hard disk.
Media Center generally does not care where the files you import into your Library live on disk. It can use files from any volume that can be seen by your operating system (including UNC paths and network drives on Windows, and mounted shares on Mac OSX). Unlike iTunes, MC does not automatically create duplicates and move your files around on disk when files are imported, but it uses them exactly where it found them. This is good because it can be used alongside other applications (like iTunes, if you desire).
However, if you want to organize your files and consolidate them into directories on disk, the Rename, Move, and Copy Files tool provides a powerful and flexible way to get yourself organized. It can also be used to create copies of your media files and for a handful of other filesystem management tasks.
To access this tool, select some files you'd like to move or copy elsewhere, and do one of:
- Right-click > Library Tools > Rename, Move, & Copy Files
- Tools > Library Tools > Rename, Move, & Copy Files
- Press F6
This will open the Rename, Move, and Copy Files dialog shown at right. Set the dialog's options and check through the preview panel to make sure your changes look correct, and then click OK to apply the changes or make the copies.
Cautions
Before running the Rename, Move, and Copy Files tool, you should always consider several cautions:
- Make a Library Backup: As mentioned above, creating a Library Backup before running the tool is strongly recommended. It can alter your files on disk and your Library in Media Center.
- Disable Auto-Import Background Scanning: You may also want to temporarily disable Auto-Import Background Scanning. Otherwise, if you apply changes to any Watched Directories, the Auto-Import system may pick up changes while the tool is still running and moving files, which can leave your Library in an inconsistent state.
- Do a few files first: Before you select every file in your Library and apply a new file naming template, select just a handful of files to test it with. Make sure to investigate where the files end up and make sure you got everything right before you apply changes to large sets of files.
- Use the Preview Panel: The tool provides a preview of changes. Review this before applying your changes to make sure you didn't make any mistakes, or select the wrong files.
- Understand filesystem basics: Using this tool effectively requires a basic understanding of how your system stores files on disk, and about filesystem paths. You don't need to be an expert, but you will need to understand basics about how files are named, where they are stored on disk, and how your operating system structures the filenames used.
Modes
The Rename, Move, and Copy Files tool can be used in one of four primary modes:
- Rename (moves files if directory changes)
- Renames and moves files, including from one disk to another.
- Copy
- Creates new independent copies of the selected files. This mode does not alter the Library or the source files on disk.
- Copy and update database to point to new location
- Creates new independent copies of the selected files, and replaces the Library entries for the existing source files with the new files. This is identical to Rename mode, except that it leaves the original copies behind untouched.
- Update database to point to new location (no file rename, move, or copy)
- Only changes the [Filename] path for the selected files in the Media Center Library. This mode does not move or copy any files on disk.
Files Impacted
By default, Media Center will only process the following files:
- The specific filesselected when you open the Rename, Move, and Copy Files tool (those shown in the Preview Panel)
- Any sidecar files Media Center created itself (cover art and JRSidecar.xml files) which have not been imported into MC's Library.
Any other auxiliary files not explicitly selected in the tool will be left untouched in their original locations. This includes files which may be "related to" the source media files, such as:
- artwork files MC didn't create
- any files imported into MC not explicitly selected, regardless of type
- subtitle sidecar files (such as srt files)
- log and info text files
- liner notes PDFs
However, if you want MC to also move these sidecar files, there is one option that impacts which files are handled by the tool:
- Move all files in folder (including non-imported files)
- If enabled, all non-imported files found alongside the selected media files will be moved to the destination directory along with the source files.
Templates
The Rename, Move, and Copy Files tool reorganizes your files on disk using one or more of a set of templates that determine the final filename and directory path used. These are:
- Directories: the base disk and directories used to store the files
- Filename: the names given to the individual files
- Find & Replace: alter the original paths by finding and replacing text strings in the source filenames and paths.
Directories
The Directories Template is used to set the base path and directories used to store your files. You set a Base Path that will be used for all files selected in the tool (this would typically contain the disk letter or volume name), and then a Rule which auto-generates the directories used based on each file's metadata. The Directories Template does not consider the source directories, disk, or volume, and the selected files can come from a variety of source locations.
For example, you might want to consolidate files from a variety of source locations on disk into a common media folder, and then put each file in folders corresponding to their [Artist] property, with sub-folders for each [Album].
For a full description of configuring this template, see:
Filename
The Filename Template is used to set the naming of the files selected in the tool. Like the Directories Template, it consists of a Rule which auto-generates the filename base on each file's metadata. The Filename Template does not consider the source filenames at all, and the replacement name is built from scratch using the Rule.
For example, you might want to name your music files with their [Disc #], [Track #], and [Name], and your movies with their [Name] and [Year].
For a full description of configuring this template, see:
Find & Replace
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
For a full description of configuring this template, see:
Availability
The Rename, Move, and Copy Files tool is available on all versions of Media Center (including OSX and Linux). In older versions of Media Center, it was called Rename Files from Properties, and while all features are not identical, older versions functioned in largely the same manner.
- Please Note: The Rename, Move, and Copy Files tool cannot be used to move files from a copy of MC running as a client to another Library Server. To use it for renaming or moving files, you must run it on the server machine directly.