All Forums >> [Scripting] >> Post a VBScript >> Replace Spaces in File and Folder Names with Underscores Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
I found this script to be necessary when I started dual booting between Linux and Windows. I got into the bad habit of using spaces often in my filenames and that's a big no-no if you're working from the console in Linux. It really makes things complicated. This should be pretty thorough and self-explanatory from my documentation.
EDIT(EBGREEN): Code tags are your friend.
< Message edited by ebgreen -- 6/22/2007 1:54:06 AM >
Actualy it replaces dots by undrscores. Especialy useful to have regular, dos-looking names in your Favorite folder. It can be easily changed to replace white space by _.
You may be interrested by the set of safeguards for the system folders.
I noticed that you work with extentions without using the objFSO.GetExtensionName(file) method ...