View previous topic :: View next topic |
Author |
Message |
ZMan
Joined: 10 Aug 2010 Posts: 1 Location: USA
|
Posted: Tue Aug 10, 2010 1:23 am Post subject: Plugin Required? |
|
|
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 |
|
 |
admin Site Admin
Joined: 09 Mar 2007 Posts: 448 Location: Canada
|
Posted: Thu Aug 12, 2010 3:16 am Post subject: |
|
|
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 |
|
 |
|