开发者

How to use CreateHardLink(string lpSymlinkFileName, string lpTargetFileName, IntPtr lpSecurityAttributes) with a relative path for target?

Using

[DllImport("kernel32.dll")]
static extern bool CreateHardLink(string lpSymlinkFileNa开发者_运维技巧me, 
string lpTargetFileName, IntPtr lpSecurityAttributes);

should I be able to use a relative path for the lpTargetFileName?

It doesn't seem to work for me. Should it? It works with full paths.

Edit:

This is Windows 7 and/or 2008

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜