File System Object - How to encode path with spaces
Posted on 2004-03-24
This should hopefully be easy...
If I use the following:
Set folder = fso.GetFolder("C:\Test\")
There are no problems, however if I change the directory to the following:
Set folder = fso.GetFolder("C:\Documents and Settings\Bill\My Documents\My Pictures\")
I get a "path not found error" or more specifically:
Microsoft VBScript runtime (0x800A004C)
Path not found
/alpha/UploadFromFolder.asp, line 110
I'm thinking it has something to do with the spaces in the filename since this is really the only difference (besides length). Does anyone have any suggestions?