win7 command prompt file date display
Saturday, January 16th, 2010 03:47 pmAfter downloading photos I've taken with my digital camera to my computer, I generally edit the photos (crop/brighten/etc.) and rename them so that the file-name includes the date the photo was taken, as well as some descriptive text of the content of the image.
Before editing the photos, I've been in the habit of opening a command prompt and doing a directory listing of the photo files. The directory listing shows the original file-names along with the dates the photos were taken (the dates the files were last modified). This way, when I edit the photos in my image editor and save them (thereby changing the files' last-modified attribute), I can still see when the photo was taken, when renaming the files, based on the dates shown in the open command prompt window. Keeping a Windows Explorer window open on the directory does not offer the same functionality, because Explorer automatically refreshes the dates when the files are re-saved... Ah. I see now that when you choose to display the folder with the "Contents" view in Explorer, then it shows the dates the photos were taken (the file creation date, I presume), which is what I need.
But still, the reason for my bewilderment....
Here I am, using Windows 7. Yesterday, I downloaded photos from my camera to the computer, and today I edited a few of them. In the Explorer window, using the "Details" view, it shows the files' last-modified dates correctly. For the photos I already edited, it shows today's date. For the rest, it shows the dates I took the photos.
But when I do a directory listing of the same folder from a command prompt, it shows yesterday's date for the photos I did not edit yet. That is the date I downloaded them from the camera, not the date they were created or last modified! Then I tried using the "/tw", "/tc", and "/ta" options which are supposed to control which date is displayed (last written/modified, created, or last-accessed), but for all options, the listing still only includes yesterday's and today's date! There doesn't seem to be way of seeing the file's actual last-modified date from the command prompt window in Windows 7!
Oh, good golly, even worse....
Even in Windows Explorer, when you right-click an unedited photo file and view its properties, the created, modified, and accessed dates all show the date the photo was downloaded from the camera!
Maybe there's a Windows setting somewhere that lets you control whether a file's original dates are kept when it is copied from external media, versus the dates being updated to the time of copy? This never was a problem when using XP, and it doesn't make sense to me why the date functionality would have been changed.
When I copied my files from an external hard-drive to this computer, the files' last-modified date wasn't changed. That was after I had installed Windows 7. So why it is working differently when I'm copying files from my camera, than when I copied files from the external HD?
Before editing the photos, I've been in the habit of opening a command prompt and doing a directory listing of the photo files. The directory listing shows the original file-names along with the dates the photos were taken (the dates the files were last modified). This way, when I edit the photos in my image editor and save them (thereby changing the files' last-modified attribute), I can still see when the photo was taken, when renaming the files, based on the dates shown in the open command prompt window. Keeping a Windows Explorer window open on the directory does not offer the same functionality, because Explorer automatically refreshes the dates when the files are re-saved... Ah. I see now that when you choose to display the folder with the "Contents" view in Explorer, then it shows the dates the photos were taken (the file creation date, I presume), which is what I need.
But still, the reason for my bewilderment....
Here I am, using Windows 7. Yesterday, I downloaded photos from my camera to the computer, and today I edited a few of them. In the Explorer window, using the "Details" view, it shows the files' last-modified dates correctly. For the photos I already edited, it shows today's date. For the rest, it shows the dates I took the photos.
But when I do a directory listing of the same folder from a command prompt, it shows yesterday's date for the photos I did not edit yet. That is the date I downloaded them from the camera, not the date they were created or last modified! Then I tried using the "/tw", "/tc", and "/ta" options which are supposed to control which date is displayed (last written/modified, created, or last-accessed), but for all options, the listing still only includes yesterday's and today's date! There doesn't seem to be way of seeing the file's actual last-modified date from the command prompt window in Windows 7!
Oh, good golly, even worse....
Even in Windows Explorer, when you right-click an unedited photo file and view its properties, the created, modified, and accessed dates all show the date the photo was downloaded from the camera!
Maybe there's a Windows setting somewhere that lets you control whether a file's original dates are kept when it is copied from external media, versus the dates being updated to the time of copy? This never was a problem when using XP, and it doesn't make sense to me why the date functionality would have been changed.
When I copied my files from an external hard-drive to this computer, the files' last-modified date wasn't changed. That was after I had installed Windows 7. So why it is working differently when I'm copying files from my camera, than when I copied files from the external HD?