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/
精彩评论