View previous topic :: View next topic |
Author |
Message |
joanhomn
Joined: 22 Sep 2008 Posts: 1
|
Posted: Tue Sep 23, 2008 2:40 am Post subject: file extension ".jpg" |
|
|
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 |
|
 |
admin Site Admin
Joined: 09 Mar 2007 Posts: 448 Location: Canada
|
Posted: Tue Sep 23, 2008 4:21 am Post subject: |
|
|
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 |
|
 |
brian99
Joined: 07 Dec 2009 Posts: 3
|
Posted: Mon Dec 07, 2009 3:50 am Post subject: |
|
|
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 |
|
 |
admin Site Admin
Joined: 09 Mar 2007 Posts: 448 Location: Canada
|
Posted: Mon Dec 07, 2009 5:54 am Post subject: |
|
|
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 |
|
 |
brian99
Joined: 07 Dec 2009 Posts: 3
|
Posted: Mon Dec 07, 2009 4:25 pm Post subject: |
|
|
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 |
|
 |
brian99
Joined: 07 Dec 2009 Posts: 3
|
Posted: Mon Dec 07, 2009 4:43 pm Post subject: |
|
|
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 |
|
 |
admin Site Admin
Joined: 09 Mar 2007 Posts: 448 Location: Canada
|
Posted: Mon Dec 07, 2009 5:24 pm Post subject: |
|
|
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 |
|
 |
|