Routine to avoid bad windows characters in a filename ?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • El

    Routine to avoid bad windows characters in a filename ?

    Hy to everybody ... and thx for your help.

    I have written a small tool to save my outlook E-mails to .msg files
    The filename of the .msg file is build on the SUBJECT of the mail
    But a lot of forbiden characters (for windows/DOS) could exist in this
    subject !
    Then I need to replace them by ... for exemple '_'
    I'm using the <replace> command in VB but ... sometimes ... a bad characters
    continue to worry me. ;-))

    When you drag & drop a mail from Outlook in the explorer, the "save" is done
    with a good filename based on the subject of the mail but WITHOUT the
    forbiden characters !!! Then I suppose it exist a function, in a DLL, or an
    API .... to help me.

    Do you know it ?

    Regards,
    El.


Working...