<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Jul 27, 2012, at 12:34 PM, Joshua Warner <<a href="mailto:allpowerful32@gmail.com">allpowerful32@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">On windows, at least, there is an API that could help with this: just get a (windows) handle to the file via OpenFile / CreateFile, then query the handle's filename.  See <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa366789(v=vs.85).aspx">http://msdn.microsoft.com/en-us/library/windows/desktop/aa366789(v=vs.85).aspx</a>.</blockquote><div><br></div><div>Thanks, I can test this when I have a chance.</div><br><blockquote type="cite"><div>I suspect there are similar ways to do it for mac and linux.</div></blockquote><div><br></div><div>As far as I know, there is no way to do this on unix. The trouble is that the mapping from filename to file (inode) is not one-to-one. There can be any number of links to the same file.</div><div><br></div><div>Jason</div><div><br></div></div></body></html>