Peters Flexible RenAmiNg Kit (PFrank) Forum Index Peters Flexible RenAmiNg Kit (PFrank)
Support and Discussion Site for the PFrank File/Folder Renaming Tool (http://www3.telus.net/pfrank)
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Plugin Required?

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



Joined: 10 Aug 2010
Posts: 1
Location: USA

PostPosted: Tue Aug 10, 2010 1:23 am    Post subject: Plugin Required? Reply with quote

I have a renaming scenario that could be challenging. I have a need to rename *.pdf files that are being scanned to various folders.

The file names are a 7 digit number (ID). I have to rename them automatically with the name of the corresponding folder name as a suffix as they are being dropped into the folder.

Example:
1234567.pdf
Renamed to: 1234567_folder.pdf

Can PFrank make a file (.bat) that can watch folders and process the files if they contain only 7 characters? The numbers will be random but will always contain 7 numbers. Let me know what you think, thanks.
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 09 Mar 2007
Posts: 446
Location: Canada

PostPosted: Thu Aug 12, 2010 3:16 am    Post subject: Reply with quote

Hi,

Yes what you ask can be done with PFrank without the use of a plugin.

1)
set up the name filter:
a)
Press 'more...' on the main window and select 'python regex'
b)
in the main window, enter the following into the naem filter field (do not include the single quotes).
'[0-9]{7,7}\.pdf'

2)
set up the custom creator.
Enter the following in the custom renaming creator (again do not include the single quotes):

Row: 1
Search:
Replace: '*Insert Folder after*Prefix*'

4)
save the current configurations to a config file of your choice. Use the main window. select File and then select 'Save configurations to...'

Before doing that play with the sample previewer to make sure the renaming is as you expect(drag a file into it).

3)
Pfrank can be run from the command line. See the built-in manual for the available options.
WHen you use the command line you can specify the configuration file to use; therefore specify the file you saved above.
You can use the command line capability in a dos bat file or using the windows scheduler.
Good luck.
Let me know if you have any problems.

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