• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 370
  • Last Modified:

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
0
ricuff
Asked:
ricuff
1 Solution
 
ricuffAuthor Commented:
thanks but in the page they are talking about files and I want to know if the name of the directory is "www"
0
 
JonasLedelCommented:
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.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now