| Mirage Source http://web.miragesource.net/forums/ |
|
| Create Folder http://web.miragesource.net/forums/viewtopic.php?f=201&t=4873 |
Page 1 of 1 |
| Author: | Mattyw [ Mon Dec 22, 2008 8:55 am ] |
| Post subject: | Create Folder |
Probably so simple, just missing it. How do I create a Folder through the code. For Backups & such? |
|
| Author: | Dragoons Master [ Mon Dec 22, 2008 2:15 pm ] |
| Post subject: | Re: Create Folder |
Call MkDir(App.Path & "\Database") Creates a folder named 'Database' on the same folder that the calling program is running. |
|
| Author: | Mattyw [ Mon Dec 22, 2008 5:17 pm ] |
| Post subject: | Re: Create Folder |
Works perfect, now I know. ;D Thanks. |
|
| Author: | Dragoons Master [ Tue Dec 23, 2008 4:55 pm ] |
| Post subject: | Re: Create Folder |
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 |
|
| Author: | Mattyw [ Tue Dec 23, 2008 9:37 pm ] |
| Post subject: | Re: Create Folder |
Already done. |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|