Difference between revisions of "ReNamer:Renaming to another folder"

From den4b Wiki
Jump to navigation Jump to search
(minor rearrange of paragraphs)
Line 1: Line 1:
This article describes how to move (rename) items to another folder during the renaming process.
+
You can optionally '''move''' the items to another folder.  
  
Basically, this is achieved by specifying a new folder path in the New Name field. In practice, this can be accomplished by a single [[ReNamer:Rules:Insert|Insert rule]]. Both absolute and relative paths can be used. For example, let us imagine that we have just [[ReNamer:Adding files and folders|added few files]] to [[ReNamer]].
+
Just specify a new folder path in the '''New Name''' field in [[ReNamer:Rules:Insert|Insert rule]].  
 +
* You can use either absolute path (e.g. '''"D:\Utilities\"''') or relative path (e.g. '''"..\"''').  
 +
 
 +
For example, let us imagine that we have just [[ReNamer:Adding files and folders|added few files]] to [[ReNamer]].
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 31: Line 34:
 
Now you can proceed with the renaming as usual.
 
Now you can proceed with the renaming as usual.
  
You can also make visible New Path column in the files table, where you will see the final destination for each item. This can be extremely useful when working with relative paths, because relative paths, including those which contain "'''..'''" (parent folder) and "'''.'''" (current folder), will be resolved into the full path.
+
You can also make the '''New Path''' column visible in the '''Files''' table, where you will see the final destination for each item. This can be extremely useful when working with relative paths, because relative paths, including those which contain "'''..'''" (parent folder) and "'''.'''" (current folder), will be resolved into the full path.
 +
 
 +
Tips:
 +
# Instead of hard-coding the path, you can use a formula in the path, to distribute the renamed files into [[multiple]] folders.
 +
# If the target folders do not exist already, ReNamer will create them and then move the file into these newly created folders.
 +
 
 +
 
 +
== Instead of [[moving]] the file, can we [[copy]] them into a new folder? ==
 +
 
 +
Well, as we saw above, ReNamer actually changes the [[path]] of the file, which effectively moves the file.
 +
But copying a file requires creating a new instance of the file, which ReNamer cannot do.
 +
The best we can do is to copy the files in the same folder first (with an external application, such as Windows Explorer) and then rename them as shown above to move them.
 +
 
 +
This method can save you a lot of work, as you can specify a formula in the path (rather than hard-coding the path).
 +
This means you can

Revision as of 05:43, 22 May 2010

You can optionally move the items to another folder.

Just specify a new folder path in the New Name field in Insert rule.

  • You can use either absolute path (e.g. "D:\Utilities\") or relative path (e.g. "..\").

For example, let us imagine that we have just added few files to ReNamer.

Name
Text.txt
Song.mp3
Document.doc

We want to move those files to a new folder "C:\New Folder". What we need to do is to add a single Insert rule, inserting "C:\New Folder\" as prefix. This will result in the following:

Name New Name
Text.txt C:\New Folder\Text.txt
Song.mp3 C:\New Folder\Song.mp3
Document.doc C:\New Folder\Document.doc

Now you can proceed with the renaming as usual.

You can also make the New Path column visible in the Files table, where you will see the final destination for each item. This can be extremely useful when working with relative paths, because relative paths, including those which contain ".." (parent folder) and "." (current folder), will be resolved into the full path.

Tips:

  1. Instead of hard-coding the path, you can use a formula in the path, to distribute the renamed files into multiple folders.
  2. If the target folders do not exist already, ReNamer will create them and then move the file into these newly created folders.


Instead of moving the file, can we copy them into a new folder?

Well, as we saw above, ReNamer actually changes the path of the file, which effectively moves the file. But copying a file requires creating a new instance of the file, which ReNamer cannot do. The best we can do is to copy the files in the same folder first (with an external application, such as Windows Explorer) and then rename them as shown above to move them.

This method can save you a lot of work, as you can specify a formula in the path (rather than hard-coding the path). This means you can