开发者

Hard links in windows xp

开发者 https://www.devze.com 2023-02-16 11:55 出处:网络
is there any way to create hard links in windows xp ? i came across this link but it says minimum vista is needed , any way to do it 开发者_运维技巧without using link magic software ?You can use

is there any way to create hard links in windows xp ? i came across this link but it says minimum vista is needed , any way to do it 开发者_运维技巧without using link magic software ?


You can use fsutil hardlink create NewFilename ExistingFilename

For details see Microsoft documentation:
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/fsutil_hardlink.mspx?mfr=true

Additionally if you need to programmatically do that, you can use CreateHardLink function.

//C++ sample
CreateHardLink( _T(“c:\\masterfile.dat”),    // Source File
            _T(“c:\\LinkToMaster.dat”),  // Link name
            NULL );    // Security attributes

For details see:
http://msdn.microsoft.com/en-us/library/aa363860(v=vs.85).aspx
http://weseetips.com/tag/createhardlink/

0

精彩评论

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