使用Log Parser 2.2工具,例如需要列出E:\Oracle\下所有子目录:
C:\Program Files\Log Parser 2.2>LogParser -i:fs -o:csv “select path,’\”‘ into e:\p.csv from E:\Oracle\*.* where (path not like ‘%.’) and (attributes like ‘%D%’) ”
结果导出在e:\p.csv中,如果需要按照逆序排序列出:
C:\Program Files\Log Parser 2.2>LogParser -i:fs -o:csv “select path,’\”‘ into e:\p.csv from E:\Oracle\*.* where (path not like ‘%.’) and (attributes like ‘%D%’) order by path desc”

最近留言