<?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>Xqlab's Blog &#187; 批处理</title>
	<atom:link href="http://www.xqlab.com/html/ytag/batch/feed" rel="self" type="application/rss+xml" />
	<link>http://www.xqlab.com</link>
	<description>一个研究电脑和网络等IT技术的实验室</description>
	<lastBuildDate>Thu, 29 Jul 2010 12:47:19 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>一个万能删除命令</title>
		<link>http://www.xqlab.com/html/y2008/214.html</link>
		<comments>http://www.xqlab.com/html/y2008/214.html#comments</comments>
		<pubDate>Thu, 11 Dec 2008 12:32:17 +0000</pubDate>
		<dc:creator>xqlab</dc:creator>
				<category><![CDATA[电脑应用]]></category>
		<category><![CDATA[编程代码]]></category>
		<category><![CDATA[命令]]></category>
		<category><![CDATA[批处理]]></category>

		<guid isPermaLink="false">http://www.xqlab.com/?p=214</guid>
		<description><![CDATA[一个无敌的万能删除命令：
DEL /F /A /Q \\?\%1
RD /S /Q \\?\%1
另寸为*.bat
将要删除的文件直接拖放到该批处理上.
就可以删除了
相关日志

映射文件夹为虚拟磁盘分区的方法
用简单命令测试网络性能
... ]]></description>
			<content:encoded><![CDATA[<p>一个无敌的万能删除命令：</p>
<p>DEL /F /A /Q \\?\%1<br />
RD /S /Q \\?\%1</p>
<p>另寸为*.bat</p>
<p>将要删除的文件直接拖放到该批处理上.</p>
<p>就可以删除了<br />
<h3>相关日志</h3>
<ul class="related_post">
<li><a href="http://www.xqlab.com/html/y2008/262.html" title="映射文件夹为虚拟磁盘分区的方法">映射文件夹为虚拟磁盘分区的方法</a></li>
<li><a href="http://www.xqlab.com/html/y2008/228.html" title="用简单命令测试网络性能">用简单命令测试网络性能</a></li>
<li><a href="http://www.xqlab.com/html/y2008/220.html" title="WinRAR的一些自解压命令">WinRAR的一些自解压命令</a></li>
<li><a href="http://www.xqlab.com/html/y2008/215.html" title="删除我的文档中的“我的音乐”及“我的视频”文件夹">删除我的文档中的“我的音乐”及“我的视频”文件夹</a></li>
<li><a href="http://www.xqlab.com/html/y2008/192.html" title="清除系统LJ的批处理">清除系统LJ的批处理</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.xqlab.com/html/y2008/214.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>清除系统LJ的批处理</title>
		<link>http://www.xqlab.com/html/y2008/192.html</link>
		<comments>http://www.xqlab.com/html/y2008/192.html#comments</comments>
		<pubDate>Sat, 22 Nov 2008 14:05:31 +0000</pubDate>
		<dc:creator>xqlab</dc:creator>
				<category><![CDATA[电脑应用]]></category>
		<category><![CDATA[编程代码]]></category>
		<category><![CDATA[批处理]]></category>

		<guid isPermaLink="false">http://www.xqlab.com/?p=192</guid>
		<description><![CDATA[清除系统LJ的批处... ]]></description>
			<content:encoded><![CDATA[<p>这个太流行了，不过我发现网上有些别有用心的人在里面加语句了，比如*.exe，真是很无聊！</p>
<p>说说使用方法吧（估计都会）：</p>
<p>　 在电脑屏幕的左下角按“开始→程序→附件→记事本”，把下面的文字复制进去,点“另存为”，路径选“桌面”，保存类型为“所有文件”，文件名为“清除系统LJ.bat”，就完成了。记住后缀名一定要是.bat，ok！双击它就能很快地清理垃圾文件，大约一分钟不到。</p>
<p>批处理文件：</p>
<p><span id="more-192"></span>======就是下面的文字(这行不用复制)=============================</p>
<p>@echo off<br />
echo 正在清除系统垃圾文件，请稍等&#8230;&#8230;<br />
del /f /s /q %systemdrive%\*.tmp<br />
del /f /s /q %systemdrive%\*._mp<br />
del /f /s /q %systemdrive%\*.log<br />
del /f /s /q %systemdrive%\*.gid<br />
del /f /s /q %systemdrive%\*.chk<br />
del /f /s /q %systemdrive%\*.old<br />
del /f /s /q %systemdrive%\recycled\*.*<br />
del /f /s /q %windir%\*.bak<br />
del /f /s /q %windir%\prefetch\*.*<br />
rd /s /q %windir%\temp &amp; md %windir%\temp<br />
del /f /q %userprofile%\cookies\*.*<br />
del /f /q %userprofile%\recent\*.*<br />
del /f /s /q &#8220;%userprofile%\Local Settings\Temporary Internet Files\*.*&#8221;<br />
del /f /s /q &#8220;%userprofile%\Local Settings\Temp\*.*&#8221;<br />
del /f /s /q &#8220;%userprofile%\recent\*.*&#8221;<br />
echo 清除系统LJ完成！<br />
echo. &amp; pause</p>
<p>=====到这里为止(这行不用复制)==============================================<br />
<h3>相关日志</h3>
<ul class="related_post">
<li><a href="http://www.xqlab.com/html/y2008/214.html" title="一个万能删除命令">一个万能删除命令</a></li>
<li><a href="http://www.xqlab.com/html/y2008/169.html" title="编写批处理文件自动更新Windows Update补丁程序">编写批处理文件自动更新Windows Update补丁程序</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.xqlab.com/html/y2008/192.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>编写批处理文件自动更新Windows Update补丁程序</title>
		<link>http://www.xqlab.com/html/y2008/169.html</link>
		<comments>http://www.xqlab.com/html/y2008/169.html#comments</comments>
		<pubDate>Fri, 14 Nov 2008 02:43:28 +0000</pubDate>
		<dc:creator>xqlab</dc:creator>
				<category><![CDATA[电脑应用]]></category>
		<category><![CDATA[编程代码]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[XP]]></category>
		<category><![CDATA[批处理]]></category>

		<guid isPermaLink="false">http://www.xqlab.com/?p=169</guid>
		<description><![CDATA[使用Windows操作系统的用户来说，定时升级WindowsUpdate安全更新补丁是保证系统正常运行，避免病毒蠕虫木马等恶意软件攻击的必要手段。
... ]]></description>
			<content:encoded><![CDATA[<p>使用Windows操作系统的用户来说，定时升级WindowsUpdate安全更新补丁是保证系统正常运行，避免病毒蠕虫木马等恶意软件攻击的必要手段。</p>
<p>我们除了使用&#8221;控制面板&#8221;的自动更新功能以来，也可以手工运行从可信任网站上下的Windows Update更新包，如果一个一个执行肯定很麻烦的啦，所以我就用了以下的方法，实现自动安装：</p>
<p>新建一个文本文件，保存为updata.cmd,</p>
<p><span id="more-169"></span>文件内容为：<br />
echo 共51个补丁 正在安装第 1 个  WindowsXP-KB898715-x86-chs.exe<br />
.\hotfix\WindowsXP-KB898715-x86-chs.exe /quiet /passive /nobackup /norestart<br />
echo 共51个补丁 正在安装第 2 个  WindowsXP-KB896428-x86-chs.exe<br />
.\hotfix\WindowsXP-KB896428-x86-chs.exe /quiet /passive /nobackup /norestart<br />
echo 共51个补丁 正在安装第 3 个  WindowsXP-KB929969-x86-chs.exe<br />
.\hotfix\WindowsXP-KB929969-x86-chs.exe /quiet /passive /nobackup /norestart<br />
echo 共51个补丁 正在安装第 4 个  WindowsXP-KB896358-x86-chs.exe<br />
.\hotfix\WindowsXP-KB896358-x86-chs.exe /quiet /passive /nobackup /norestart<br />
echo 共51个补丁 正在安装第 5 个  WindowsXP-KB901214-x86-chs.exe<br />
.\hotfix\WindowsXP-KB901214-x86-chs.exe /quiet /passive /nobackup /norestart<br />
echo 共51个补丁 正在安装第 6 个  WindowsXP-KB893756-x86-chs.exe<br />
.\hotfix\WindowsXP-KB893756-x86-chs.exe /quiet /passive /nobackup /norestart<br />
其中hotfix为存放Windows Update安全更新补丁的目录，<br />
*.exe为Windows Update安全更新补丁包，<br />
echo 共51个补丁 正在安装第 * 个  WindowsXP-KB893756-x86-chs.exe  提示下一个安装的文件是哪一个,第几个..</p>
<p>/quiet  参数表示自动（非交互式安装）,<br />
/passive  表示被动方式，<br />
/nobackup  表示安全更新时不做备份，/<br />
/norestart  表示升级后不重启操作系统。<br />
编写完成后，运行updata.cmd文件就可以了<br />
（注意喔！hotfix文件夹下有对应Windows Update安全更新补丁包exe文件)<br />
<h3>相关日志</h3>
<ul class="related_post">
<li><a href="http://www.xqlab.com/html/y2009/371.html" title="非法进程的识别及清除方法">非法进程的识别及清除方法</a></li>
<li><a href="http://www.xqlab.com/html/y2008/235.html" title="XP系统提高工作效率的5个常用快捷键">XP系统提高工作效率的5个常用快捷键</a></li>
<li><a href="http://www.xqlab.com/html/y2008/205.html" title="Windows XP：共享经典问题详细拆解">Windows XP：共享经典问题详细拆解</a></li>
<li><a href="http://www.xqlab.com/html/y2008/156.html" title="关掉不必要的服务-XP中可禁用的服务对照表">关掉不必要的服务-XP中可禁用的服务对照表</a></li>
<li><a href="http://www.xqlab.com/html/y2008/98.html" title="Windows XP系统命令合集">Windows XP系统命令合集</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.xqlab.com/html/y2008/169.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
