Putting date and time in filenames

My camcorder generates digital video-files named 00001.MTS, 00002.MTS, and so on. When I connect the camera to a computer using USB, I can move the files to harddisk as is. Unfortunately, when I process the video into other formats (avi, mp4 etc.), the original time-stamp gets lost, so there is no way to (later) see when they were filmed (or stored on the camcorder to be exact). This isn't useful. I've been looking for a method to flawlessly rename (folders full of) many camcorder files with their original date and time inserted in the name, so I can easily find what I'm looking for, and don't have to lose time over it as I was used to. After doing a lot of experimenting using the "for" command for…

Continue ReadingPutting date and time in filenames