CreateDirectory - I can't get it to work
Posted: Tue Jun 19, 2007 6:14 pm
Here's my code:
Always returns 0
The problem lies in the "~" which is the wildcard to the home directory. It works with a fully qualified path, i.e. "/home/user/mydir", but I won't know this so how can I achieve this directory creation with the wildcard?
Thanks
Code: Select all
gMyDir.s = "~/mydir"
Debug CreateDirectory(gMyDir.s)
The problem lies in the "~" which is the wildcard to the home directory. It works with a fully qualified path, i.e. "/home/user/mydir", but I won't know this so how can I achieve this directory creation with the wildcard?
Thanks