Jun 16, 2004 #1 peryan77 Programmer Joined May 7, 2004 Messages 41 Location US How would I go about allowing a user to create a folder in a given directory, but only if it does not already exist?
How would I go about allowing a user to create a folder in a given directory, but only if it does not already exist?
Jun 16, 2004 #2 jrbarnett Programmer Joined Jul 20, 2001 Messages 9,645 Location GB Use code such as the following: Code: If Dir("C:\Data\Mystuff", vbDirectory) <> "" Then ' create the folder MkDir "C:\Data\Mystuff" End If John Upvote 0 Downvote
Use code such as the following: Code: If Dir("C:\Data\Mystuff", vbDirectory) <> "" Then ' create the folder MkDir "C:\Data\Mystuff" End If John
Jun 17, 2004 #3 Craig0201 Technical User Joined Oct 11, 2000 Messages 1,261 Location GB Or On Error Resume Next MkDir "C:\Data\Mystuff" Craig Upvote 0 Downvote