Re: Starting a function after invalid path is found
Or you could use the FileSystemObject;
Add a reference to Microsoft Scripting Runtime
Code:
Public Sub FindMyFolder(byval strFolderName as string)
dim fso As Scripting.FileSystemObject
Set fso = new Scripting.FileSystemObject
If Not fso.GetFolder(strFolderName) then
call DoSomethingWhenFolderIsNotThere
Else
Call DoSomethingWhenFolderIsThere
End If
Set fso = nothing
End Sub
Last edited by Twodogs; February 17th, 2008 at 08:26 PM.
Reason: Oops :)
Be nice to Harley riders...