See If A Directory Exists In Visual Basic

Hi there, how about a close cousin to yesterdays Visual Basic function?  In a previous post we showed you a function that will tell you whether or not a file does indeed exist.  Well, here is another similar function, but it tells you whether or not a directory exists.  This is another handy tool for all you code monkeys out there.  It works much the same way, check it out below:

Continue reading

See if a file exists in Visual Basic

Here is a handy little tip (and function) for all you Visual Basic developers out there.  I use this quite often, it’s useful to see if whatever file you are working with or looking for exists before you start trying to access it.  So, here we have a nice little function you can drop into a module and call from anywhere when you need it.

(Need to do the same for a directory? That function is here!)

Check it out:

Continue reading