Is it possible to keep a record of the original location of a file?


  1. Posts : 62
    windows 10
       #1

    Is it possible to keep a record of the original location of a file?


    Now, I have a number of files, in fact, a whole hard drive which is a data drive that contains only my data, no system.

    I'd like to know if I can have a record of the original locations of all of the files e.g. E:\family_photos\2023
    F:\travel_video\2023\Europe\Italy
    and no matter where the files are moved, and how many times they are moved, I'll be able to move them back
    to the original location at any time I want, in a batch, selective and automatic way, or at least, I'll have a record of where it was located, and then I can make it manually by myself. (Yes, this can be done by using a notepad or simply writing down with a pen, but I'm looking for an automatic way.)
    Is there any such tool?
      My Computer


  2. Posts : 6,850
    22H2 64 Bit Pro
       #2

    The way 'd do it is:

    Make a system image backup of the drive before you move the files.

    Then at some point in the future you want to move them back to the original location mount your system image backup in Explorer and use TSR Copy Changed Files to move files that exist in your backup but not in your data drive to their original locations.

    Free utility or inbuilt program to compare source & destination files - Windows 7 Forums

    Otherwise there's probably some other file/ folder sync software that you might use.

    SimplySync Backup

    Add folder pairs and make backup copies somewhere. Use the same software to move files back to original locations from backup.

    SimplySync Backup

    There will be lots of other folder sync software that can do that.
      My Computer


  3. Posts : 456
    Windows 10
       #3

    Are the files also going to be renamed or just moved to a different location?
    In your data drive let's say e: you could run the following command to get a list of all file locations:

    dir /a /s /b e:\*.*>>locations.txt

    That would save the full path of each file in a text file called "locations.txt"

    You can also save the path of each file in Alternate Data Streams within each file with a batch script
      My Computer


  4. Posts : 6,850
    22H2 64 Bit Pro
       #4

    Or you could just drag the folders onto a DocPad (free software by Gammadyne) window to list the contents.

    Is it possible to keep a record of the original location of a file?-documents-folder.jpg

    Results in all file names and path.

    Is it possible to keep a record of the original location of a file?-docpad-result.jpg
      My Computer


  5. Posts : 1,594
    win10 home
       #5

    Use either ---Control Panel>File History ---or ---Settings>Update & Security>Backup ---
      My Computer


  6. Posts : 62
    windows 10
    Thread Starter
       #6

    ricardobohner said:
    Are the files also going to be renamed or just moved to a different location?
    In your data drive let's say e: you could run the following command to get a list of all file locations:

    dir /a /s /b e:\*.*>>locations.txt

    That would save the full path of each file in a text file called "locations.txt"

    You can also save the path of each file in Alternate Data Streams within each file with a batch script
    I will not rename any of the files at all, but I will create new folders, delete empty folders and move (i.e. cut and paste) files from one location to another. All I want is I can always have a record of the original locations of the files no matter how many times they have been moved (but I don't need a detailed record of where they have been once moved, that would be crazy if I did)
    For example, a file called A.mp4 is located at E:\Videos\Science_Experiment\ on day 1. Then it is moved around to different folders and after 100 days or even longer, it is located at E:\Temp\Biology\, I'll still be able to know that it was first located in Science_Experiment\. Of course, that will be even better if I can click to move all files back to their original locations but this is certainly not necessary. I will not likely do this.

    - - - Updated - - -

    Callender said:
    The way 'd do it is:

    Make a system image backup of the drive before you move the files.

    Then at some point in the future you want to move them back to the original location mount your system image backup in Explorer and use TSR Copy Changed Files to move files that exist in your backup but not in your data drive to their original locations.

    Free utility or inbuilt program to compare source & destination files - Windows 7 Forums

    Otherwise there's probably some other file/ folder sync software that you might use.

    SimplySync Backup

    Add folder pairs and make backup copies somewhere. Use the same software to move files back to original locations from backup.

    SimplySync Backup

    There will be lots of other folder sync software that can do that.
    In that case, do I always need double the capacity to make it because you are talking about creating backup image?
      My Computer


  7. Posts : 6,850
    22H2 64 Bit Pro
       #7

    Compressed backups don't mean that you need double the storage. You just need to store the backup somewhere and mount it in explorer when needed. I see that you list multiple drives. A backup might use around half the size of the original.

    Suggest: Organise your file and folder structure so that you know where everything is without the need to constantly move personal files around.
      My Computer


  8. Posts : 2,143
    Windows 11 Pro (latest update ... forever anal)
       #8

    Karens Directory Printer (freeware)

    Run before the move to get a listing of all files and their directory, folder, subfolder(s), their full paths.
      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 00:48.
Find Us




Windows 10 Forums