I have a section in my script that enters the result of a variable into a file save dialog.
However, as you know, Windows hates certain characters in file names. So I am trying to strip them from the variable.
To be more specific; I need to read variable %filname% and replace anything that isn't "A-Z, a-z, 1-0, with probably an underscore or even a space. (I don't need to worry about the file extension)
So: my$file.name would become my_file_name
Can anyone point me in the right direction? I can do it by replace but there are so many characters to replace... I hoped that there may be an "allow only" feature.
Thanks.
