vbs判断目录是否存在

1 Dim fso
2 Set fso=CreateObject("Scripting.FileSystemObject")        
3 If fso.folderExists("C:\\Program Files (x86)") Then         
4         msgbox "ok"
5 Else 
6         msgbox "not ok"
7 End If

 

导航