Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


how to check whether folder exist or not

 
Logged in as: Guest
arrSession:exec spGetSession 2,17,61982
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> Windows Script Components >> how to check whether folder exist or not
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 how to check whether folder exist or not - 6/29/2008 10:59:14 PM   
  r.jobyjoseph

 

Posts: 6
Score: 0
Joined: 5/13/2008
Status: offline
Dear all,

I have a folder "c:\test\1001 abacus gmbh"
I want to test whether this folder exist or not.

I also have a folder "c:\test\1001 abacus gmbh."  the difference is that a "dot" at end of folder name.

if i checked fso.FolderExist("c:\test\1001 abacus gmbh") it shows true because such a folder exist.

but if i checked fso.FolderExist("c:\test\1001 abacus gmbh.")  it also shows true although it does not exist.

how to check this situation. i want to display error messages in my logfile if such characters occur in my folder name . but i can't do that.

thanks in advance
 
 
Post #: 1
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> Windows Script Components >> how to check whether folder exist or not Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts