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 to get conditional maximum dates and values?Hi all, I would like to find the largest % of institutional ownership for each deal, for example, f…
Stacked bar graph: percentage of total observations, by groupsHello, I would like to produce a graph that shows the percentage of total observations (code_7), ov…
Utilizar SPSSHello, I’m trying to use the PISA dataset but I’m not being able convert it from SAS and SPSS. It i…
ComandesHello, I’m trying to use the PISA dataset but I’m not being able convert it from SAS and SPSS. It i…
unbalanced panel data with endogenous explanatory variable and some unobservable variablesHi All, I'm struggling with an equation that has an endogenous regressor (sample selection bias) and…
Subscribe to:
Post Comments (Atom)
0 Response to Loop to copy all files
Post a Comment