<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>跑马圈地 &#187; Log Parser</title>
	<atom:link href="http://www.ukuang.com/tag/log-parser/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ukuang.com</link>
	<description>一切恩爱会，无常难久得。声势多畏惧，命危于晨露。 因爱故生忧，因爱故生怖。若离于爱者，无忧亦无怖。</description>
	<lastBuildDate>Mon, 16 Jan 2012 17:51:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>【Log Parser使用经验】列出一个目录下所有子目录</title>
		<link>http://www.ukuang.com/2009/10/10/%e3%80%90log-parser%e4%bd%bf%e7%94%a8%e7%bb%8f%e9%aa%8c%e3%80%91%e5%88%97%e5%87%ba%e4%b8%80%e4%b8%aa%e7%9b%ae%e5%bd%95%e4%b8%8b%e6%89%80%e6%9c%89%e5%ad%90%e7%9b%ae%e5%bd%95/</link>
		<comments>http://www.ukuang.com/2009/10/10/%e3%80%90log-parser%e4%bd%bf%e7%94%a8%e7%bb%8f%e9%aa%8c%e3%80%91%e5%88%97%e5%87%ba%e4%b8%80%e4%b8%aa%e7%9b%ae%e5%bd%95%e4%b8%8b%e6%89%80%e6%9c%89%e5%ad%90%e7%9b%ae%e5%bd%95/#comments</comments>
		<pubDate>Sat, 10 Oct 2009 11:58:27 +0000</pubDate>
		<dc:creator>bluffstone</dc:creator>
				<category><![CDATA[技术经验帖]]></category>
		<category><![CDATA[Log Parser]]></category>

		<guid isPermaLink="false">http://www.ukuang.com/?p=60</guid>
		<description><![CDATA[<p></p> <p>使用Log Parser 2.2工具，例如需要列出E:\Oracle\下所有子目录：</p> <p>C:\Program Files\Log Parser 2.2&#62;LogParser -i:fs -o:csv &#8220;select path,&#8217;\&#8221;&#8216; into e:\p.csv from E:\Oracle\*.* where (path not like &#8216;%.&#8217;) and (attributes like &#8216;%D%&#8217;) &#8221;</p> <p>结果导出在e:\p.csv中，如果需要按照逆序排序列出：</p> <p>C:\Program Files\Log Parser 2.2&#62;LogParser -i:fs -o:csv &#8220;select path,&#8217;\&#8221;&#8216; into e:\p.csv from E:\Oracle\*.* where (path not like &#8216;%.&#8217;) and (attributes like &#8216;%D%&#8217;) order by path desc&#8221;</p> <p></p> [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><span id="ctl00_MainContentPlaceholder_ctl01_ctl00_lblEntry"></p>
<div id="msgcns!378A3196AFD42482!180">
<p>使用Log Parser 2.2工具，例如需要列出E:\Oracle\下所有子目录：</p>
<p>C:\Program Files\Log Parser 2.2&gt;LogParser -i:fs -o:csv &#8220;select path,&#8217;\&#8221;&#8216; into e:\p.csv from E:\Oracle\*.* where (path not like &#8216;%.&#8217;) and (attributes like &#8216;%D%&#8217;) &#8221;</p>
<p>结果导出在e:\p.csv中，如果需要按照逆序排序列出：</p>
<p>C:\Program Files\Log Parser 2.2&gt;LogParser -i:fs -o:csv &#8220;select path,&#8217;\&#8221;&#8216; into e:\p.csv from E:\Oracle\*.* where (path not like &#8216;%.&#8217;) and (attributes like &#8216;%D%&#8217;) order by path desc&#8221;</p></div>
<p></span></p>
<div class="shr-publisher-60"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.ukuang.com/2009/10/10/%e3%80%90log-parser%e4%bd%bf%e7%94%a8%e7%bb%8f%e9%aa%8c%e3%80%91%e5%88%97%e5%87%ba%e4%b8%80%e4%b8%aa%e7%9b%ae%e5%bd%95%e4%b8%8b%e6%89%80%e6%9c%89%e5%ad%90%e7%9b%ae%e5%bd%95/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>批量删除一个目录下所有同名子目录的一种方法</title>
		<link>http://www.ukuang.com/2009/10/10/%e6%89%b9%e9%87%8f%e5%88%a0%e9%99%a4%e4%b8%80%e4%b8%aa%e7%9b%ae%e5%bd%95%e4%b8%8b%e6%89%80%e6%9c%89%e5%90%8c%e5%90%8d%e5%ad%90%e7%9b%ae%e5%bd%95%e7%9a%84%e4%b8%80%e7%a7%8d%e6%96%b9%e6%b3%95/</link>
		<comments>http://www.ukuang.com/2009/10/10/%e6%89%b9%e9%87%8f%e5%88%a0%e9%99%a4%e4%b8%80%e4%b8%aa%e7%9b%ae%e5%bd%95%e4%b8%8b%e6%89%80%e6%9c%89%e5%90%8c%e5%90%8d%e5%ad%90%e7%9b%ae%e5%bd%95%e7%9a%84%e4%b8%80%e7%a7%8d%e6%96%b9%e6%b3%95/#comments</comments>
		<pubDate>Sat, 10 Oct 2009 11:54:21 +0000</pubDate>
		<dc:creator>bluffstone</dc:creator>
				<category><![CDATA[技术经验帖]]></category>
		<category><![CDATA[Log Parser]]></category>

		<guid isPermaLink="false">http://www.ukuang.com/?p=51</guid>
		<description><![CDATA[<p></p> 1. 查询该目录下所有该名称的目录的路径 <p>使用Log Parser 2.2工具查询指定目录下所有指定名称的目录的路径，执行的sql语句如下：</p> <p>"select path into svn.csv from E:\LJMIS\*.* where Attributes like 'D%' and name='.svn'" -i:fs -o:csv </p> <p>dos下删除目录树的命令如下：</p> <p>rd /s /q</p> <p>综合使用，在查询的时候，自动合成删除命令，执行如下：</p> <p>C:\Program Files\Log Parser 2.2&#62;logparser "select 'rd /s /q ',path into e:\svn.csv from E:\LJMIS\*.* where Attributes like 'D%' and name='.svn'" -i:fs -o:csv </p> <p>结果以.csv格式删除，保存在e:\svn.csv文件中。结果大致如下： </p> <p>rd /s /q E:\LJMIS\打印模块\.svn </p> [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><span id="ctl00_MainContentPlaceholder_ctl01_ctl00_lblEntry"></p>
<h5>1. 查询该目录下所有该名称的目录的路径</h5>
<p>使用Log Parser 2.2工具查询指定目录下所有指定名称的目录的路径，执行的sql语句如下：</p>
<blockquote><p><span style="color: #808080;"><code>"select path into svn.csv from E:\LJMIS\*.* where Attributes like 'D%' and name='.svn'" -i:fs -o:csv</code> </span></p></blockquote>
<p>dos下删除目录树的命令如下：</p>
<blockquote><p><span style="color: #808080;">rd /s /q</span></p></blockquote>
<p>综合使用，在查询的时候，自动合成删除命令，执行如下：</p>
<blockquote><p><code><span style="color: #808080;">C:\Program Files\Log Parser 2.2&gt;logparser "select 'rd /s /q ',path into e:\svn.csv from E:\LJMIS\*.* where Attributes like 'D%' and name='.svn'" -i:fs -o:csv </span></code></p></blockquote>
<p>结果以.csv格式删除，保存在e:\svn.csv文件中。结果大致如下： <code> </code></p>
<blockquote><p><span style="color: #808080;">rd /s /q E:\LJMIS\打印模块\.svn </span></p>
<p><span style="color: #808080;">rd /s /q E:\LJMIS\Raize Components v3.0\.svn </span></p>
<p><span style="color: #808080;">rd /s /q E:\LJMIS\SMExport_v4.68\.svn </span></p>
<p><span style="color: #808080;">…… …… </span></p></blockquote>
<h5>2. 执行删除语句</h5>
<p><span id="ctl00_MainContentPlaceholder_ctl01_ctl00_lblEntry"></span>复制生成的删除命令，在cmd中执行，就ok了。不过有一个小bug，“rd /s /q”命令对于路径中包含空白字符的目录名的子目录删除，总是报找不到路径的错误，可以适当在含空白字符的目录名上加上“”，就可以了。</p>
<p></span></p>
<div class="shr-publisher-51"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.ukuang.com/2009/10/10/%e6%89%b9%e9%87%8f%e5%88%a0%e9%99%a4%e4%b8%80%e4%b8%aa%e7%9b%ae%e5%bd%95%e4%b8%8b%e6%89%80%e6%9c%89%e5%90%8c%e5%90%8d%e5%ad%90%e7%9b%ae%e5%bd%95%e7%9a%84%e4%b8%80%e7%a7%8d%e6%96%b9%e6%b3%95/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

