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
Taking more time in loop (foreach/forvalues)?Dear All, I notice that if I run 100 regressions (using loop), and save some statistics, every regre…
How do I do two j for reshape command? Use reshape twice?Hello, I have a wide data set that contains variables: PUBID (individuals ID) startdate__njob_year …
Adding the scores of imputed group variableHello Statalist, I have a multiply imputed dataset that looks like this Country A B C _mi_m 1 2 2 …
Urgent STATA query please helpI am a complete noob at STATA and am trying to do a subgroup meta analysis but it won't let me creat…
How to match two datasets with constraints?Hello, This is my first time posting on this forum so thank you to everyone in advance. The simple…
Subscribe to:
Post Comments (Atom)
0 Response to Loop to copy all files
Post a Comment