There's CreateHardLink API function in Win2K that creates hard links to files.
Can anyone help me with an example of using it in VB? I do not know how to pass parameters correctly
TYA
Printable View
There's CreateHardLink API function in Win2K that creates hard links to files.
Can anyone help me with an example of using it in VB? I do not know how to pass parameters correctly
TYA
Use this, I haven't tried it but it should work:
Declare Function CreateHardLink Lib "Kernel32" (lpFileName as string, lpExistingFileName as string, lpSecurityAttributes as Any) as Long
Then use as
lngReturn = CreateHardLink ("Myfilename","MyExistingFileName",0&)
Thanks,
It works.