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
Generate cases according to a number in variableDear All, How do we create a number of cases according to the number in a variable. For example I w…
How to extract matrix elements to Word table using putdocx table?I have a matrix called matrix1 whose values are present and verified (e.g., using matrix list matrix…
Separating by group in a scatterI would like to plot the mean wage with confidence standard deviations by grade and race (black v wh…
How should I test significance between 2 groups?I have two groups. I want to measure whether group difference is significant or not. For example, in…
How to calculate weighted mean incomeI want to calculate a weighted mean income for each state. Here is a part of the sample. (I randoml…
Subscribe to:
Post Comments (Atom)
0 Response to Loop to copy all files
Post a Comment