Creates an NTFS hardlink to a file or a directory
FileCreateNTFSLink ( "source", "hardlink" [, flag] )
| source | Path of the source to which the hardlink will be created. |
| hardlink | Path of the hardlink. |
| flag | [optional] this flag determines whether to overwrite link if they already exist. Can be a combination of the following: 0 = (default) do not overwrite existing link 1 = overwrite existing link |
| Success: | Returns 1. |
| Failure: | Returns 0. |
FileChangeDir(@ScriptDir)
DirCreate('dir')
FileWriteLine("test.txt", "test")
MsgBox(0, "Hardlink", FileCreateNTFSLink("test.txt", "dir\test.log", 1))