Jump to content
Sign in to follow this  

How to "unlink" files created using FileCreateNTFSLink?

Recommended Posts


What I'm doing is creating a temporary link to some existing files using FileCreateNTFSLink. After I'm done, I would like to simply delete these files. For most files, this is a non-issue using FileDelete. However, those links to those files that are open at the time cannot be deleted. Is there a way to delete those link files or links without closing the programs? I tried change the attributes from Read only, but that didn't work. Suggestions? Just a side note, we run almost exclusively XP machines.

EDIT: Further research has shown that it is the nature of hard links that attributes are shared between the hard link and the original, and thus it is not possible to delete the hard link until the original file is closed. Correct me if I'm wrong, but that seems to be the case. Unfortunately, Windows XP does not support any type of Symbolic link, so I will just have to live with it.

Edited by CGRemakes

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this