I'm setting up a vbscript to sweep a Windows folder's contents and FTP any files found, to another location.
The problem I have is that the path of the Windows folder has been set up with a space in it.
As a result, FileExists and FolderExists both give me errors when I check for the folder, or its contents, before doing the FTP.
I've tried removing the space, from the path, on a test system - and this works.
I've tried adding quotes (""") and ("""") and Chr(34) but none of these work.
Bottom line - the space causes the test to fail.
Any ideas how I can get it to work WITH the space in the file/folder path ?
I can't recode the Windows system - it has dependant applications running from it, so these will die if I touch the folder names.
Alternative would be to blindly copy the contents to a temp location - but that defeats the object of having the FileExists and FolderExists test ?
Thanks in advance