1029 DirMake Dir Not Created
Keywords: 1029 DirMake Dir Not Created Directory Folder Junction Symbolic Link DirExist
Question:
I am trying to create multiple directories under C:\Users\{userid}\My Documents. I am able to successfully create the first subfolder
but as soon as I try to create anothe subfolder I get the 1029 error. Here is a code sample that repoduces the problem on my Windows
7 64-bit system.
targ1 = "C:\Users\Fred\My Documents\Test1"
DirMake(targ1)
targ2 = "C:\Users\Fred\My Documents\Test2"
DirMake(targ2)
Answer:
Try changing 'My Documents' to 'Documents' in your directory paths. Apparently the 'My Documents' directory
is special because it is a directory 'junction'. The real directory is called 'Documents'. The only way to use DirMake
on a path with a junction is to use the actual directory path that the junction is linked to which in this case is
"C:\users\{userid}\documents".
targ1 = "C:\Users\Fred\Documents\Test1"
DirMake(targ1)
targ2 = "C:\Users\Fred\Documents\Test2"
DirMake(targ2)
Article ID: W17864
Filename: 1029 DirMake Dir not created.txt
File Created: 2011:09:29:08:00:50
Last Updated: 2011:09:29:08:00:50