in reply to Spaces in folder names...
Since it seems you're getting the folder name from the command line, beware that white space will be used to separate individual command line arguments. If this is happening -- and I'm willing to bet XP that it is -- you'll have to try quoting the entire folder name, ("like this"). I believe there's a way to escape the white space in Windows (I know there is in most *ix shells), so dig into your shell documentation.
Information about American English usage here and here. Floating point issues? Please read this before posting. — emc