Hi all,
Not sure if someone has done this here already, but I've created some R code to batch rename a folder of AudioMoth files to apply the date and time they were created. Hope this is of use to others:
#Convert filenames of AudioMoth to date and time of creation
library(tidyverse)
#Set directory to folder containing files
setwd("~/Dropbox (Baker Consultants)/AudioMoth_Rename") #Change this to wherever your files are located
Audiomoth_Dir <- "~/Dropbox/AudioMoth_Rename"
#Generate list of files present within the folder
file_list <-list.files(Audiomoth_Dir, pattern = "*.WAV", full.names = FALSE)
#Generate vector of creation dates and times
wav_file_info <- file.info(file_list)
new_names <- as.character(wav_file_info$mtime)
#Rename files
file.rename(from = file_list, to = str_c(new_names,".wav"))
Much appreciated for help! I'm an undergrad and experience experienced issues making papers and another made work. That is the explanation bestessay, it saves individual time I really have splendid school execution and a high GPA. All works without duplicating and on time
Thanks for that useful information, Justin. I've been using RichCopy for years and never noticed that it copies the Date Created time stamp by default. (The option to turn the feature on/off is buried in the "File attributes / Error Handling" section).
It should be blindingly obvious but - for anyone else who is as dim as I was - the "Created" time is when the file was opened on the AudioMoth ie at the start of the recording and the "Modified" time corresponds to when the file was closed at the end.
"Ordinary" Windows Copy writes a new Created time stamp but retains the original Modified stamp whereas RichCopy retains or re-writes both timestamps together, depending upon your selected option, and can also re-write them both to a specified date/time of your choosing.
One feature to beware of (again it should be obvious) is that if you set RichCopy to copy several files in parallel (increasing the copying speed) the resulting copied files are likely to be highly fragmented, which may or may not be a problem.
Opps - forgot the link... https://technet.microsoft.com/en-us/library/2009.04.utilityspotlight.aspx
Peripherally relevant, but possibly useful too - There is a handy utility from Microsoft which will copy or move files while keeping all the timestamps intact. It also uses multi-threading to copy several files at once speeding things up, and can recover an interrupted copy session.