Hello everyone.
this is my first post in Statalist, so please forgive any mistake on it.
I'm trying to capture the filenames of several files in any given directory using:
local filename : dir . files "*"
This actually works and it creates a local named `filename' containing the names of every file in the directory. The problem is that it does not separates the filenames from eachother, so I get a string: fosis.xlsxjunaeb.xlsxmatriz2019.xlsxmineduc.xlsxse nama.xlsxsename.xlsxsence.xlsxsernameg.xlsxssmds.x lsxsstrabajo.xlsx (names are arbitrary)
Thus, I am unable to work with each file separatedly as I would like. Does anyone knows how to solve this?
I appreciate your answers.
**Im currently working with STATA 14 running in Windows 10 in a Lenovo Thinkpad 51 signature edition**
this is my first post in Statalist, so please forgive any mistake on it.
I'm trying to capture the filenames of several files in any given directory using:
local filename : dir . files "*"
This actually works and it creates a local named `filename' containing the names of every file in the directory. The problem is that it does not separates the filenames from eachother, so I get a string: fosis.xlsxjunaeb.xlsxmatriz2019.xlsxmineduc.xlsxse nama.xlsxsename.xlsxsence.xlsxsernameg.xlsxssmds.x lsxsstrabajo.xlsx (names are arbitrary)
Thus, I am unable to work with each file separatedly as I would like. Does anyone knows how to solve this?
I appreciate your answers.
**Im currently working with STATA 14 running in Windows 10 in a Lenovo Thinkpad 51 signature edition**
Comment