Jul 15, 2005 #1 cmz21 Programmer May 5, 2005 110 US Hello, I have found that I can create a directory using the code: MkDir "C:\My Documents" I was wondering if there is a simple way to check if this directory already exists before it is created. Thanks cmz
Hello, I have found that I can create a directory using the code: MkDir "C:\My Documents" I was wondering if there is a simple way to check if this directory already exists before it is created. Thanks cmz
Jul 15, 2005 #2 Trevil Programmer Jun 19, 2003 459 US Search for help on MkDir Since you're using the MkDir.... strPath = Dir("C:\My Documents", vbDirectory) If strPath <> "" then ' It Exists End if "Hmmm, it worked when I tested it.... Upvote 0 Downvote
Search for help on MkDir Since you're using the MkDir.... strPath = Dir("C:\My Documents", vbDirectory) If strPath <> "" then ' It Exists End if "Hmmm, it worked when I tested it....
Jul 15, 2005 Thread starter #3 cmz21 Programmer May 5, 2005 110 US thank you..... I was missing the vbDirectory part. Working perfectly now. cmz Upvote 0 Downvote