Subject had bad chars for file name

J

John Ford

I'm saving email items to .msg files, using the subject as part of the file name. Characters such as "?" are invalid for file names -- what's the usual remedy for this? Is there an easy way to remove/replace all invalid characters in a string?

TIA,
-jcf
 
K

Ken Slovak - [MVP - Outlook]

I usually use a series of Replace() functions. What you replace with
is your choice. I just usually use "".

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Lead Author, Professional Outlook 2000 Programming, Wrox Press
Lead Author, Beginning VB 6 Application Development, Wrox Press
Attachment Options
http://www.slovaktech.com/attachmentoptions.htm
Extended Reminders
http://www.slovaktech.com/extendedreminders.htm


I'm saving email items to .msg files, using the subject as part of the
file name. Characters such as "?" are invalid for file names -- what's
the usual remedy for this? Is there an easy way to remove/replace all
invalid characters in a string?

TIA,
-jcf
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top