Monday, May 21, 2012

Check folder Existence

Checking of folder existence to minimise extra step in your script.
Below is an example to check for C:\Windows folder

set objDRV = CreateObject("Scripting.FileSystemObject")
If  objDRV.FolderExists("c:\windows") Then

(DO SOMETHING)

else

(DO ANOTHER THING)

End if 

0 comments:

Post a Comment