Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21237

[RESOLVED] How do you uses instr to see if a directory exists

$
0
0
Ok so i need to check if a directory exists, problem is the folder is diffent on each install the only thing that the same is the first 3 characters so I thought of uses the instr to check to see if any folder contain the words "wko" but I get a run time error 13 with this.
Code:

If Dir$(InStr("C:\wko", vbDirectory)) <> vbNullString Then

end if

any help would be great
thnak you

Viewing all articles
Browse latest Browse all 21237

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>