Is there a means of tracking files as they are renamed or moved across

  1. Posts : 1

    Is there a means of tracking files as they are renamed or moved across

    This year I made a massive transition to PowerShell and Cli tools. With massive power comes...

    I can easily mass rename or pre append strings to file names and do often. That is fine.

    But I write lots of Markdown documents and work on other files that "reference" media files on drives.

    So if the file being "referenced" changes, the document will not longer be able to find it and so I end up with broken files.

    Lets say I have a markdown file, Chapter that reference Cats.mp4 and I dont read it for a whole year:
    [img]C:\Users\Ralf\Top Secret thesis\Cats.mp4[/img]
    Since then I have renamed Cats.mp4 file, its parent folder and maybe even moved it to another drive that has a entirely different folder structure.

    Reading that Chapter document a year later I would not know where to begin with where this file is.

    But lets say that file exitst somewhere entirely entact but only with a different file name and folder.

    Is there then a way to identify this file through means other than a file name or parent folder?

    I am contantly seeing people reference words like Hash3, Checksum, are they applicable here?

    Can I instead search for such a property that this file holds that will not change?

    Maybe there is a propperty windows uses to keep track of files, even as their names and locations change?

    I am thinking, If I take note of such a property, then, a year later I can search for that propery instead of the filename to find specific files.

    Searching speed across multiple drives is not an issue for me, I have a robust search utility, Search Everything, through it I can pretty much find any known property belonging to a file very quickly, I have a few PowerShell Modules that use Everything as a backend engine too.
      My Computer

  2. Posts : 43,382
    Win 10 Pro (22H2) (2nd PC is 22H2)

    Hi, there are at least 2 difficulties with your concept.
    a. You would need a record of all such files' hash or checksum so you can use it in a future search.
    b. Windows does not record those as a file property- hashes need to be computed.

    By way of a comment - I can find files by content 'instantly' even with file explorer open at 'My PC' using Windows search.
    Everything does not index content (unless it's changed).
      My Computers


  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 20:22.
Find Us

Windows 10 Forums