[quote user="Cloaked User"] Seriously fubar code they have there.[/quote]It looks very simple to me. Let vn be the variable name and pn be the pathname.    if(Contains_Space(vn)) vn = Properly_Escape(vn);All well and good! Copy and paste, then edit:    if(Contains_Space(vn)) pn = Properly_Escape(pn);Notice that Contains_Space() is still operating on vn. This single-letter error causes the behavior described above.