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

Please help.
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Answers

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

Answered 10/31/2014 by: flip1001
Fourth Degree Green Belt

Please log in to comment
Answer this question or Comment on this question for clarity