Why Stata does not let me unzip a file if I write the whole diretory, as below, on the command instead of using -global- or -chdir-?
unzipfile "C:\Users\Paula\Pesquisa\DADOS\dados_georreferenci ados\Malha_Setor_Censitário_2000\setor_urbano\sp\3 500105.zip", replace
Actually what I would like to do is something like that:
foreach i in 3500105 3500303 3500709 {
unzipfile "C:\Users\Paula\Pesquisa\DADOS\dados_georreferenci ados\Malha_Setor_Censitário_2000\setor_urbano\sp\` i'\`i'.zip", replace
}
Each zipfile has its own folder and I would like to unzip them all in an automatic way. The example above is for only 3 files, but I have more than a hundred, each of them in its own folder.
Thank you!
unzipfile "C:\Users\Paula\Pesquisa\DADOS\dados_georreferenci ados\Malha_Setor_Censitário_2000\setor_urbano\sp\3 500105.zip", replace
Actually what I would like to do is something like that:
foreach i in 3500105 3500303 3500709 {
unzipfile "C:\Users\Paula\Pesquisa\DADOS\dados_georreferenci ados\Malha_Setor_Censitário_2000\setor_urbano\sp\` i'\`i'.zip", replace
}
Each zipfile has its own folder and I would like to unzip them all in an automatic way. The example above is for only 3 files, but I have more than a hundred, each of them in its own folder.
Thank you!
Comment