FileSystemObject - Unsupported filename characters

ffrirs4gir

New Member
Is there a function I can use that converts dodgy filenames with good filenames?I'm processing a large amount of photos, and very occasionally, my script stops because the uploader has put a curly symbol (~) in the filename. I'm also now wondering if there are any other bad symbols that can't be in a filename and how to escape them.I'm looping through these files using VBScript's FileSystem Object, similar to the following:\[code\]For Each File In Files If InStr(UCase(File.Name), ".JPG") > 0 Then '// do stuff End IfNext\[/code\]
 
Back
Top