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 

Renaming large numbers of Outlook msg files

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



Joined: 24 Jun 2007
Posts: 2

PostPosted: Sun Jun 24, 2007 8:30 am    Post subject: Renaming large numbers of Outlook msg files Reply with quote

Hi,

I'm having problems renaming a large number of these Outlook msg files.

Essentially, I'm using Msgsave to extract outlook files for archiving purposes, and these are saved with a file format:

20070105--[Time]-[Sender]-[Unique File Ref]-[Subject].msg

The first eight digits are actually the date in eight digit, YYYYMMDD format. I'd like to change the file name to the below (the unique file reference is actually the subdirectory that the files will be stored under):

070105 [Unique File Ref]-[Sender].msg

Unfortunately, I'm not familiar with programming and haven't been able to get this using the standard commands. Any help will be greatly appreciated! Thanks!

Gerald
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 09 Mar 2007
Posts: 448
Location: Canada

PostPosted: Sun Jun 24, 2007 3:17 pm    Post subject: Reply with quote

Set the name filter to '*.msg' (assuming a wildcard format)
Set up the search/replace columns of the custom renaming list as follows (do not include the single quotes):

Row: 1
Search: '(?x)^.{1,2} # remove 1st 2 chars'
Replace:
Row: 2
Search: '(.*?)--(.*?)-(.*?)-(.*?)-(.*?).msg'
Replace: '\1 \4-\3.msg'

This is a good example of how to use a regular expression to rearrange different groups of words in a name.

I wasn't cure if you were also asking to have the files moved into a subfolder named for the [unique file ref]. If so, then please give a specific example of a name and the resulting 'path + newname' and I'll show you how PFrank can do that too.

Hope this helps,

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



Joined: 24 Jun 2007
Posts: 2

PostPosted: Mon Jun 25, 2007 1:35 am    Post subject: Reply with quote

Thanks loads!

The last time I touched anything resembling programming was dBase more than 15 years ago - I'm just far too rusty!

That did everything I required - I'll take a look at the Regex, and try to puzzle out the intricacies. Again, thanks!

Gerald
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Peters Flexible RenAmiNg Kit (PFrank) Forum Index -> Plugins 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