We'd like to remind Forumites to please avoid political debate on the Forum... Read More »
We're aware that some users are experiencing technical issues which the team are working to resolve. See the Community Noticeboard for more info. Thank you for your patience.
📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!
Windows 7 - date file moved to folder
Options

Ant555
Posts: 1,596 Forumite


in Techie Stuff
Does anyone know of any way to determine what date a file was moved to a folder?
I have a scenario where I want to keep the existing 'created' dates of a few thousand files but note the date that they are moved to a new directory on the same drive in Windows explorer.. I have selected all of the obvious column/field headings and not found anything in Windows itself (although i might have missed something obvious!) - any thoughts on how this can be achieved?
many Thanks
I have a scenario where I want to keep the existing 'created' dates of a few thousand files but note the date that they are moved to a new directory on the same drive in Windows explorer.. I have selected all of the obvious column/field headings and not found anything in Windows itself (although i might have missed something obvious!) - any thoughts on how this can be achieved?
many Thanks
0
Comments
-
Under linux, the modification time on the directory would be updated when a file is added to it. Don't know if windows does the same.
Stupid question: can you not just create a README file in the directory - the date would be recorded as the creation time on that file, and/or you could just write a note in the file recording the date as a string.
Would need a bit more info on what you are trying to do. Is this a move that has already happened, and you want to lnow when, or is this a move you are preparing to do, and need to record some information when you do it ?0 -
Skimming the process down, I am essentially asking a group of users in an office to do something with files in a source folder (pdf's and word docs) which will include opening it very briefly to view some data.
Then, I want each of them to close the file and then move the 'completed' files to a folder.
I want to be able to see how many files, for instance were copied to <TargetFolder> on any given day.
If I asked them to open a text file and fill something in then that would probably double the processing time.0 -
One option would be to just use your daily backup logs to see the changes. (You do run backups, right ..?)
Looks like ntfs stores 3 timestamps per file : creation time, modify time, and access time. In this scenario, if the users are just reading from the file before moving it, the creation time should be preserved, and the access time should be when they opened it. (Of course, your nightly backup may well go on and modify the access time, which doesn't help you. An incremental backup might just advance it to the end of the same day, but a bigger backup would advance all the access times of the files changed that period. Some backups may be able to restore the access time, or access the file in such a way that the access time is not changed.)0 -
Another way to do it could be to have a process actively watching the directory. Windows has an API ReadDirectoryChangesW which efficiently waits for a directory to change. I assume various scripting languages expose it. eg python - https://pypi.python.org/pypi/watchdog/0.5.4
Another possible option might be to use an ACL on the directory to cause windows to log accesses into the system log. But I'm a long way out of my comfort zone here !0 -
Why not move the contents of the "completed" folder into a dated folder (say, "2016-06-10-Completed") at the end of each day?
You could even set up a script to run at a certain time and move the files automatically.0
This discussion has been closed.
Confirm your email address to Create Threads and Reply

Categories
- All Categories
- 350.8K Banking & Borrowing
- 253K Reduce Debt & Boost Income
- 453.5K Spending & Discounts
- 243.8K Work, Benefits & Business
- 598.6K Mortgages, Homes & Bills
- 176.8K Life & Family
- 257.1K Travel & Transport
- 1.5M Hobbies & Leisure
- 16.1K Discuss & Feedback
- 37.6K Read-Only Boards