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 

file extension ".jpg"

 
Post new topic   Reply to topic    Peters Flexible RenAmiNg Kit (PFrank) Forum Index -> Regular Expressions
View previous topic :: View next topic  
Author Message
joanhomn



Joined: 22 Sep 2008
Posts: 1

PostPosted: Tue Sep 23, 2008 2:40 am    Post subject: file extension ".jpg" Reply with quote

I have sucessfully renamed all JPG file names according to my needs...however, I found all the extension ".jpg" was lost..while I cannot find a way to put this file extension back after all....

Could you please help?
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 09 Mar 2007
Posts: 446
Location: Canada

PostPosted: Tue Sep 23, 2008 4:21 am    Post subject: Reply with quote

To add the extension .jpg to to the end of all files, paste the following data (do not inlcude the single quotes) into the specified search/replace column.


Row: 1
Search: '(.*)'
Replace: '\1.jpg'

Hope this helps. Let me know if you have any other questions.

Peter.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
brian99



Joined: 07 Dec 2009
Posts: 3

PostPosted: Mon Dec 07, 2009 3:50 am    Post subject: Reply with quote

Hello I'm trying something similar to the above although I have a directory of files with no extensions and am trying to add the .jpg extension to each. I added (.*) under search pattern and \1.jpg under replace pattern and if I type something in the sample name field the preview appears to be adding the extension. I have selected the folder that contains the files in the current folder section and I then select SCAN to the right of the current folder text entry. It takes me to the detailed information window then I select RENAME then hit YES on the RENAME WARNING dialog and nothing happens. At the bottom of the detailed information window it says "RENAMED FILES: 0 out of 0". It seems like the application is not recognizing the files in the folder I selected. What am I missing here? Any help would be greatly appreciated. THanks!!
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 09 Mar 2007
Posts: 446
Location: Canada

PostPosted: Mon Dec 07, 2009 5:54 am    Post subject: Reply with quote

Hi,

It sounds like you did everything right. How many entries showed up in the preview window after the scan?

Please send me the summary window output that appears at the bottom of the main window. It will show how many files would have appeared in the preview list and any errors that might have happened before and after the scan.

Peter.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
brian99



Joined: 07 Dec 2009
Posts: 3

PostPosted: Mon Dec 07, 2009 4:25 pm    Post subject: Reply with quote

Here's the output:

==========================================================================
Dec 07 2009 08:23:30 ***Scan Complete

'Custom' Replacement Summary:

Row: 1
Search: '(.*)'
Replace: '\1.jpg'

Current Folder: 'C:\Users\family\Desktop\test'
Name Filter (Unix Wildcard match for patterns):
Types: Files and Folders Name Filter: '*.*'
Date Exclusion: Disabled Name Exclusion Filter: None
Min Name Length: 001 Max Name Length: 512 Min Path Length: 001 Max Path Length: 512
Subfolder Levels: 512 Subfolder Filter: '*'
Subfolder Exclusion Filter: None

Total Names to be Changed: 0 (Includes 0 Folders)
Total Names Scanned (after Filtering): 0 (Includes 0 Folders)
Back to top
View user's profile Send private message
brian99



Joined: 07 Dec 2009
Posts: 3

PostPosted: Mon Dec 07, 2009 4:43 pm    Post subject: Reply with quote

I got it to work. I chose the "more" option next to the name filter and changed the pattern matching method from "unix wildcard" to "python regex".
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 09 Mar 2007
Posts: 446
Location: Canada

PostPosted: Mon Dec 07, 2009 5:24 pm    Post subject: Reply with quote

Yes - I see what happened.
The wildcard filter was configured to look for an extension (i.e. assumes there is a '.' in the name). Since your files didn't have extensions, none were matched.
For future reference the wildcard filter will work for your case if you just set it to '*'.

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 -> Regular Expressions 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