Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Create Folder
#1
Probably so simple, just missing it. How do I create a Folder through the code. For Backups & such?
Reply
#2
Call MkDir(App.Path & "\Database")
Creates a folder named 'Database' on the same folder that the calling program is running.
Reply
#3
Works perfect, now I know. ;D

Thanks.
Reply
#4
No problem ^^
Just to remember, it's good to check if the folder already does not exist, before creating it.
Code:
' Check if the database directory is there, if its not make it
    If LCase$(Dir(App.Path & "\database", vbDirectory))  "database" Then
        Call MkDir(App.Path & "\Database")
    End If
Reply
#5
Already done.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)