Subject had bad chars for file name

  • Thread starter Thread starter John Ford
  • Start date Start date
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
 
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
 
Back
Top