Ghastly_MIB Posted May 31, 2007 Posted May 31, 2007 Hey, Does anybody know how I can create a hardlink from an directory to an other? I know that the destination directory must be empty. But creating the link always fails. I tried to link a file, and that works... Simple test script: #NoTrayIcon DirCreate("C:\system directory") MsgBox(0, "", FileCreateNTFSLink("C:\windows\system32", "C:\system directory")) Thanks, Mathijs
MHz Posted May 31, 2007 Posted May 31, 2007 Try this code without creating the folder/directory. If Not FileExists('C:\system directory\') Then MsgBox(0, "", FileCreateNTFSLink("C:\windows\system32\", "C:\system directory\")) EndIf You now know that the directory should not exist before creating the junction point now.
Ghastly_MIB Posted May 31, 2007 Author Posted May 31, 2007 It works I know the directory must be empty.. But it wasn't good enough Thanks!!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now