GoodSp33d
GoodSp33d

Reputation: 6282

Hard links in windows xp

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 ?

Upvotes: 1

Views: 878

Answers (1)

vahapt
vahapt

Reputation: 1715

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/

Upvotes: 1

Related Questions