Click here to Skip to main content
15,922,166 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am working vb.net project .i save folder path to database using textbox and i give link to the path ,when i click link it will open folder,it's working fine except punctuations, one of my folder contains d'ambrossio this folder cannot opened can u please help me
Posted

You will need to rename the folder without the ' character. Use the Path.GetInvalidFileNameChars to return an array of type Char to see all the characters you cannot use when naming files and folders.

You can also use Path.GetInvalidPathChars to get a Char array of illegal path characters.
 
Share this answer
 
VB
hi

try this

Replace(folder_path, "'", "''")
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900