Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用
[DllImport("kernel32.dll")] static extern bool CreateHardLink(string lpSymlinkFileName, string lpTargetFileName, IntPtr lpSecurityAttributes);
我应该能够为 lpTargetFileName 使用相对路径吗?
它似乎对我不起作用。应该是?它适用于完整路径。
编辑:
这是 Windows 7 和/或 2008