【Log Parser使用经验】列出一个目录下所有子目录

使用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”

Leave a Reply

  

  

  

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>