Recursively looping through a drive and replacing illegal characters

Posted by yeahumok on Stack Overflow See other posts from Stack Overflow or by yeahumok
Published on 2010-05-18T15:42:31Z Indexed on 2010/05/18 16:10 UTC
Read the original article Hit count: 161

Filed under:
|
|

Hi

I have to create an app that drills into a specific drive, reads all file names and replaces illegal SharePoint characters with underscores. The illegal characters I am referring to are: ~ # % & * {} / \ | : <> ? - ""

Can someone provide either a link to code or code itself on how to do this? I am VERY new to C# and need all the help i can possibly get. I have researched code on recursively drilling through a drive but i am not sure how to put the character replace and the recursive looping together. Please help!

© Stack Overflow or respective owner

Related posts about c#

Related posts about replace