K Keith Jun 23, 2004 #1 I am looking for a way to check if a directory exists on a machine. If it dosn't I want to create it. Can anybody help?
I am looking for a way to check if a directory exists on a machine. If it dosn't I want to create it. Can anybody help?
N Norman Jones Jun 23, 2004 #2 Hi Keith, On Error Resume Next MkDir "C:\YourNewFolderName" On Error GoTo 0
P papou Jun 23, 2004 #3 Hi Keith On Error Resume Next ChDir "C:\Papou" If Err <> 0 Then MkDir "C:\Papou" HTH Cordially Pascal
Hi Keith On Error Resume Next ChDir "C:\Papou" If Err <> 0 Then MkDir "C:\Papou" HTH Cordially Pascal
S sarasta Jun 23, 2004 #4 Well, I've coded that way : Set a = CreateObject("Scripting.FileSystemObject") If a.folderexists("c:\temp") Then Else a.createfolder ("c:\temp") End I
Well, I've coded that way : Set a = CreateObject("Scripting.FileSystemObject") If a.folderexists("c:\temp") Then Else a.createfolder ("c:\temp") End I