Hi, i tried to do a loop to copy all my databases in the same file but i've got a problem.

So i want to copy and rename all database : "name.csv" to " name_old.csv " and when i do my loop i get " name.csv_old ". Someone knows how to do that?

local myfiles: dir "....." "*.csv"
foreach file of local myfiles {
copy "`file'" "`file'_old"
}

Thanks !