You are not logged in.
Pages: 1
Is there any way with ReNamer to set a rule that will output the renamed files to a different directory. For example, if I have these three files:
C:\1.jpg
C:\2.jpg
C:\3.jpg
Can I rename and move them so that the renamed files end up as:
C:\Vacation\Paris-1.jpg
C:\Vacation\Paris-2.jpg
C:\Vacation\Paris-3.jpg
Thanks!
Offline
you can use the pascalscript rules
yours would be
begin
FileName:='Vacation\Paris-'+FileName;
end.
Offline
Alternatively, you could simply use Insert rule, to insert "Vacation\Paris-" ;D
Note: dont mind the warning that ReNamer will give you, it only tries to be safe, since "\" character is a forbidden character for the filename!
Offline
Thanks! Is there any way to "walk up" the directory tree structure. For example, let's say I have these directories:
C:\Test\
C:\Test2\
C:\Test3\
In each of these directories, I have files that I want to rename AND move to the root level (C:\). What I'd like to be able to do is specify a rule that applies to all the files in these second level directories, rather than needing to set a separate rule for each directory (such as Remove "\Test", Remove "\Test2", etc.).
Offline
Thanks! Is there any way to "walk up" the directory tree structure?
No, at the moment there is no way to do that... But, you can rename all of those files as if they were in the same folder (so they don't clush), and then use "Cut Files to Clipboard" (Ctrl+X) option to put all of them into the Clipboard. Then, open Windows Explorer, navigate your-self into the C drive, and Paste them (Ctrl+V) ;D
Warning!!! Make sure filenames DO NOT CLUSH, otherwise pasting operation will fail! God only knows what kinda mess it can be, because Windows Explorer will not reverse the failed pasting operation!
Tell us how it goes for you, ok? Good luck
Offline
That worked great! Thanks for the tip.
Offline
Moving up the tree can be done with good old DOS syntax.
'..\' will go up one level in the path.
---
I am in "C:\one\2\three\test" folder.
I wrote in Rule 'Insert': ..\
and the files would be moved to "C:\one\2\three" folder.
(i.e. i move the files up one level from folder 'test' to folder 'three')
---
I am in "C:\one\2\three\test" folder.
I wrote in Rule 'Insert': ..\..\
and the files would be moved to "C:\one\2" folder.
(i.e. i move the files up two level to folder '2')
---
I am in "C:\one\2\three\test" folder.
I wrote in Rule 'Insert': ..\..\new\
and the files would be moved to "C:\one\2\new" folder.
(i.e. i go up two level to folder '2' and create there a new folder 'new' where the files are moved in)
---
I was also able to wrote 'X:\ren\amer\test\' and the files where moved from C: to X:
---
Tested with v5.1
Last edited by Stefan (2007-10-28 09:50)
Read the *WIKI* for HELP + MANUAL + Tips&Tricks.
If ReNamer had helped you, please *DONATE* to Denis or buy a PRO license. (Read *Lite vs Pro*)
Offline
Uhh.. you have resurrected a topic which is 1.5 years old
At that moment in the past, I believe, ReNamer didn't yet have an ability to resolve relative file paths, so "..\" didn't work at the time when the topic was created.
Now, of course, the solution is much simpler, as you already noted
Offline
Pages: 1