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 !
Related Posts with Loop to copy all files
How do you combine categorical and numerical variables?How can I combine variables? These variables all refer to use of prescription benzodiazepines: val…
Strate graphHi everyone, I would like to create a survival graph: a strate graph. I ask you if it is possible to…
PISATOOLS package - How can I conduct a linear regression with one interaction?Hello everyone, I try to analyze PISA 2018 data and, more specifically, I would like to conduct a s…
ttest over multiple subsamplesHi, I have three variables, x, y, and z. x and y are categorical variables, x takes 0 and 1, but y t…
Fixed Effects High Prob F and low RsqHello everyone, After performing xtoverid and interpreting its results, I decided to run a fe robust…
Subscribe to:
Post Comments (Atom)
0 Response to Loop to copy all files
Post a Comment