Thank al Doman
I modify this line in his code.
lcBadChars = [\/:*?"<>|]
>>Hi all,
>>
>>I want a function to find a valid name of fich to record on HDD.
>>This name of fich is a compagny Name.
>>
>>
>>cCompagnyName = [Résidence "la belle fleur" ( * Sanatorium ) ]
>>Must be
>>cCompgnyFich = [Résidence la belle fleur ( Sanatorium ) ]
>>
>>
>
>To add to Borislav's reply, you can get the list of invalid characters from
http://support.microsoft.com/kb/177506