/build/static/layout/Breadcrumb_cap_w.png

how to check hidden folder using vb script?

I want to check whether "C:\MSOcache" folder (iT is hidden folder) exists or not using vbscript.

Please help.

0 Comments   [ + ] Show comments

Answers (1)

Posted by: flip1001 9 years ago
Black Belt
1
Option Explicit

Dim Fso
Set Fso = CreateObject("Scripting.FileSystemObject")

Dim Fldr
Fldr = "C:\MSOcache"

If Fso.FolderExists(Fldr) Then
WScript.Echo Fldr & " exists"
Else
WScript.Echo Fldr & " does not exist"
End If

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ