Question : find a folder name vbs

Hi experts

I need to check if  the name of a dir is "www" to replace this line

If objFSO.FolderExists(strHomeFolder) Then ....

in something like

if the name of the dir is "www" then .....

in vbs could you please help me? thanks

Answer : find a folder name vbs

I am not totally sure that I have understood your question. If you just want to know whether the name of the folder specified in your variable strHomeFolder you could simply check if the last three letters in this string is www.

Or do you want to know if the directory exists? If so - there is a method called FolderExists, just as in the code you posted, which should work for that.

If neither of these suggestions is your answer, please be more specific and I will help you.
Random Solutions  
 
programming4us programming4us