Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

getfolder error when folder name is two words.

Status
Not open for further replies.

mevasquez

Programmer
Aug 26, 2003
75
US
I am getting a "path not found" error when the folder name consist of two words such as c:\word1 word2\. I have tried,
Code:
strFolder = c:\word1 word2

Set sFolder = oFso.getfolder(chr(34) & strFolder & chr(34))
I have noticed that some people in the organization have made folder names using two words.

TIA

Mike
 
Found the answer, when I added "\" at the end, it worked.

Code:
strFolder = c:\word1 word2

Set sFolder = oFso.getfolder(strFolder & "\")

 
>Found the answer, when I added "\" at the end, it worked.
That's your imagination. It's an illusion.
[tt]
strFolder = [red]"[/red]c:\word1 word2[red]"[/red]
Set sFolder = oFso.getfolder(strFolder)
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top