#1 2006-05-08 12:38

vslacks
Member
Registered: 2006-05-08
Posts: 3

ReNamer - Output to different directory?

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

#2 2006-05-09 06:25

dloneranger
Senior Member
From: Birmingham, UK
Registered: 2006-05-03
Posts: 122

Re: ReNamer - Output to different directory?

you can use the pascalscript rules

yours would be

begin
  FileName:='Vacation\Paris-'+FileName;
end.

Offline

#3 2006-05-09 17:14

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,374

Re: ReNamer - Output to different directory?

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

#4 2006-05-09 20:30

vslacks
Member
Registered: 2006-05-08
Posts: 3

Re: ReNamer - Output to different directory?

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

#5 2006-05-09 22:22

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,374

Re: ReNamer - Output to different directory?

vslacks wrote:

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 smile

Offline

#6 2006-05-12 13:38

vslacks
Member
Registered: 2006-05-08
Posts: 3

Re: ReNamer - Output to different directory?

That worked great! Thanks for the tip.

Offline

#7 2007-10-28 09:44

Stefan
Moderator
From: Germany, EU
Registered: 2007-10-23
Posts: 1,161

Re: ReNamer - Output to different directory?

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

#8 2007-10-28 22:05

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,374

Re: ReNamer - Output to different directory?

Uhh.. you have resurrected a topic which is 1.5 years old wink

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 big_smile

Offline

Board footer

Powered by FluxBB