VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

PathExists

Marshall Youngblood  (1 Submission)   Files/File Controls/Input/Output   Visual Basic 3.0   Unknown Difficulty   Wed 3rd February 2021

Determine if a directory exists. It is a variation of the vbcoders function I borrowed called 'FileExists that always works'.

Inputs
A path name to be checked (as string)

Assumes
Directory length are size 0. But just even though checking to see if the file is zero length works, it isn't good enough. Some files can be 0 length also. Using GetAttr function with the mask vbDirectory ensures that what you're looking at is indeed a directory.

Returns
true if path if valid

API Declarations
API not used

Rate PathExists (2(2 Vote))
PathExists.bas

PathExists Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters