mkdir creates file instead of directory

mkdir creates file instead of directory

Post by Sm9hY2hpb » Fri, 27 Apr 2007 03:14:03


When I have mkdir as a post-build event in VS .NET 2005 it creates a file
instead of a folder. Is this a bug in VS .NET 2005? Is there a patch for this?
 
 
 

1. mkdir creates file instead of directory ...

2. MkDir won't create a directory and sub directory at the same time

For instances where my FolderPath value is "C:\MyQuotation\Jan" it won't
create the directory. Is there something I can do to correct the code?

Dim Path As String

If Not IsNull(DLookup("FolderPath", "UserPass")) Then
Path = (DLookup("FolderPath", "UserPass"))
End If

If Dir(Path, vbDirectory) = "" Then
MkDir Path
End If

Dim strLinkPath As String
Dim objShell As Object

If Path = "" Then
Set objShell = CreateObject("WScript.Shell")
strLinkPath = objShell.SpecialFolders("MyDocuments")
Else
strLinkPath = Path
End If

--
Message posted via AccessMonster.com
http://www.yqcomputer.com/

3. File.mkdirs wont create a directory

4. File.mkdirs wont create a directory

5. mkdir() doesn't create sub directories

6. [trunk/r14273] File.mkdir() -> Dir.mkdir() in enc/make_encma

7. Creating variable file names using mkdir

8. Noobie Question: Using strings and paths in mkdir (os.mkdir("/test/"a))

9. system('mkdir') VS php mkdir ?

10. File command detects files instead of directories.

11. howto only create a .lib file instead of creating/linking a complete dll

12. Creating a file in a non-Directory configured directory (Ahhh!)

13. [PATCH 1/7] fuse: check directory aliasing in mkdir

14. mkdir to several directories

15. Prom deleting directory when using recursive mkdir