?
Solved

find a folder name vbs

Posted on 2010-01-10
3
Medium Priority
?
366 Views
Last Modified: 2012-05-08
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
Comment
Question by:ricuff
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 30

Expert Comment

by:IanTh
ID: 26277920
0
 

Author Comment

by:ricuff
ID: 26278001
thanks but in the page they are talking about files and I want to know if the name of the directory is "www"
0
 
LVL 2

Accepted Solution

by:
JonasLedel earned 2000 total points
ID: 26278898
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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have put this article together as i needed to get all the information that might be available already into one general document that could be referenced once without searching the Internet for the different pieces. I have had a few issues where…
Microsoft has released remote PowerShell capabilities to all commercial Office 365 customers. So you can be controlled via PowerShell and not from the Office 365 admin center Download Windows PowerShell Module for Lync Online http://www.micros…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question