I was wondering how to create a folder name call "maths" in c drive in vb runtime.
and can anyone show me the simplest code.
Printable View
I was wondering how to create a folder name call "maths" in c drive in vb runtime.
and can anyone show me the simplest code.
Use the Dir function and MkDir statement to find if a folder exists and create one if it doesn't.
Code:If Dir("C:\maths", vbDirectory) = "" Then
MkDir "C:\maths"
Else
Exit Sub
End If
I am appreciate it,
Thanks,Matthew Gates .