| 1. |
Solve : batch 2 change files's created date 2 modified date? |
|
Answer» I NEED a batch file to copy a files modified date to the created date.Don't think this is possible. There is no native way to do this in batch so you'll need a 3rd party program called Touch. You can read about it here and if it seems helpful follow the link to the download Is there a way to recopy the files while modifying the create date to the modify date in the process? No. You'll have to wait until the pictures reach their final destination before modifying any dates. How is this MicroSD card connected to the computer? If you look in My Computer does it have a drive letter assigned? Do you use the NT copy command to transfer the pictures or some sort of software that came with the phone? The links I posted may have been unclear. FileTouch can be run from the command line and with a little imagination you can extract the modified date of a file and push it into the date created field: Code: [Select]echo off setlocal enabledelayedexpansion SET picDir=c:\temp for /f "tokens=* delims=" %%i in ('dir %picDir% /b') do ( set dtmMod=%%~ti "e:\Small Applications\FileTouch\FileTouch" "%picDir%\%%i" "!dtmMod!" -c echo. ) picDir = the location of the pictures. This is why I asked if the SD card (or phone) is assigned a drive letter c:\filetouch\filetouch = the fully qualified path to the filetouch program; change as required Good luck. Thanks, I will give it a try. The sd card is set up with a drive letter on the lan as I am now using the card slot in my printer. I was SIMPLY using drag and drop to do the transfer. |
|