0
I have several executables in different directories that are hard links to the same data.
.
|-- file 1
`-- cache
`-- foo.exe
`-- bar
`-- foo.exe <-hard link to .\cache\foo.exe
`-- baz
`-- foo.exe <-hard link to .\cache\foo.exe
If one of these is currently running, I can not delete the others. I execute .\bar\foo.exe
and then try to delete .\baz\foo.exe
I am told that the file can not be deleted. Killing the .\bar\foo.exe
process is not feasible, as it is a long running and expensive task. But I really need .\baz\foo.exe
gone, because I need the name for something else.
is there a way to break the link and get rid of .\baz\foo.exe
?
Thanks. That seemed to work. I can have my cleanup script sweep un-delete-ables into a junk dir, and clean them up later. – Matthew Scouten – 2011-06-27T19:16:37.787