top of page

Support Forum

Public·1001 members

Re-writing filenames with date and time

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"))


2311 Views
Saad saleem
Saad saleem
Oct 30, 2023

The officially approved housing society known as<a href="https://taginemarketing.com/nova-city/">Nova City</a> is built by the Nova Group and is located next to the Islamabad International Airport on the M-14 Motorway. The project is being built, planned, and constructed to provide the best housing options at reasonable prices. Investors have confidence in the well-known real estate developer The Nova Group.

Call Now


Support Forum

©2025 Open Acoustic Devices

bottom of page