Peters Flexible RenAmiNg Kit (PFrank) Forum Index Peters Flexible RenAmiNg Kit (PFrank)
Support and Discussion Site for the PFrank File/Folder Renaming Tool (***NEW HOME PAGE*** "http://pfrank.atwebpages.com")
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

URGENT I can't seem to find help details on Build Subfolders

 
Post new topic   Reply to topic    Peters Flexible RenAmiNg Kit (PFrank) Forum Index -> General Support
View previous topic :: View next topic  
Author Message
goodguyndfw



Joined: 01 Dec 2008
Posts: 6

PostPosted: Tue Jan 27, 2009 2:54 pm    Post subject: URGENT I can't seem to find help details on Build Subfolders Reply with quote

Anyone that can help, please. I've worked for hours now trying to rename files and save each to it's own subfolder. I don't think it's hard to do, I just can't figure out the right syntax.

This is what is my file directory now:

\images\profile(1).gif
\images\profile(2).gif
\images\profile(3).gif
and so forth up to profile(1000).gif for example.

This is what my desired directory structure and filenames should look like:

\images\1\1.gif
\images\2\2.gif
\images\3\3.gif
and on until no more picture files. Logically I think the steps are something like:

Delete the text "profile"
Delete the brackets "(" and ")" so now profile(1).gif is 1.gif
Somehow use the name of the file "1" for example and create a subfolder with that name. This is what I can't figure out.
Finally, copy or move the renamed file into it's designated folder,i.e. /1/1.gif.

Is this do-able? If not, any suggestions on some kind of file directory application that would? I just feel though that PFrank can do it though.

I have to figure out how to do this ASAP. Hate to say it, but my job depends on getting this project done and this file structure is a critical part of making it work.

Thank you in advance.
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 09 Mar 2007
Posts: 448
Location: Canada

PostPosted: Mon Feb 02, 2009 12:30 am    Post subject: Reply with quote

Hi,

Sorry for the late reponse (I was out of town).
Yes it is relatively simple to do what you want. enter the following information into the custom renaming creator (do not include the single quotes).

Row: 1
Search: 'profile'
Replace:
Row: 2
Search: '\('
Replace:
Row: 3
Search: '\)'
Replace:
Row: 4
Search: '(?B)([0-9]+).gif'
Replace: '\1/\1.gif'

the last row creates the subfolder. You need to have the (?B) flag to enable the use of the slash character as a path separator.

Hope that helps.

Peter.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Peters Flexible RenAmiNg Kit (PFrank) Forum Index -> General Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group. Hosted by phpBB.BizHat.com


Start Your Own Video Sharing Site

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!
For Support, visit Forums.BizHat.com