蓝色 发表于 2014-8-17 21:25 
https://bbs.pinggu.org/thread-1146219-1-1.html
为什么我改写成这样,想转换excel格式的文件,却只能转化成一条记录,帮我看看谢谢!
cd E:wind2007\hezhen
local filelist: dir . files "*.xlsx"
foreach file of local filelist {
import excel using `file', firstrow clear
saveold `file'.dta,replace
}