Hi,
Can you try the following?
String.Join("",fileName.Split(System.IO.Path.GetInvalidFileNameChars))
Note: The above also removes path separator (\
). So you need to extract just filename in advance.
Regards,
3 Likes
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.