<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>chenall's blog</title>
	
	<link>http://chenall.net</link>
	<description>走自己的路，让别人说去吧!</description>
	<lastBuildDate>Wed, 08 Feb 2012 16:44:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/Chenall" /><feedburner:info uri="chenall" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>常用单文件绿软分享基于Cameyo</title>
		<link>http://feedproxy.google.com/~r/Chenall/~3/ThcHUBomyf4/</link>
		<comments>http://chenall.net/post/portable_apps/#comments</comments>
		<pubDate>Wed, 08 Feb 2012 12:04:13 +0000</pubDate>
		<dc:creator>chenall</dc:creator>
				<category><![CDATA[软件]]></category>
		<category><![CDATA[Cameyo]]></category>
		<category><![CDATA[游戏]]></category>
		<category><![CDATA[绿色软软件]]></category>

		<guid isPermaLink="false">http://chenall.net/?p=808</guid>
		<description><![CDATA[使用Cameyo打包的软件分享
QQ游戏，QQ2011,QQ旋风
游戏
水果忍者，植物大战僵尸，蒙特祖玛的宝藏，愤怒的小鸟……。<span class="readmore"><a href="http://chenall.net/post/portable_apps/" title="常用单文件绿软分享基于Cameyo" target="_blank">&#160;【阅读全文】 &#62;&#62;</a></span>]]></description>
			<content:encoded><![CDATA[<p>Cameyo你可以把它当成是Thinstall的免费版，Thinstall是收费的，Cameyo是开源免费的。当然了，两者的实现方式还是有很大区别的。</p>
<h3 style="font-size: 14px; color: rgb(102, 102, 102); background-color: rgb(241, 247, 253); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(210, 232, 250); border-right-color: rgb(210, 232, 250); border-bottom-color: rgb(210, 232, 250); border-left-color: rgb(210, 232, 250); padding-right: 10px; padding-left: 10px; font-family: Tahoma, 'Microsoft YaHei', Verdana, Arial, Helvetica, sans-serif; line-height: 24px; "><a href="http://chenall.net/post/tag/cameyo/" class="st_tag internal_tag" rel="tag" title="标签 Cameyo 下的日志">Cameyo</a> 简介： &nbsp; 以下文件摘自<a href="http://www.iplaysoft.com/cameyo.html">异次元软件世界</a></h3>
<div>&nbsp; &nbsp; &nbsp; &nbsp; Cameyo 是一款完全免费的应用程序虚拟化 (Application Virtualization) 工具或者说单文件软件制作工具，支持64位系统，支持 XP、Vista 和 Windows7。应用程序虚拟化技术就是将完整的程序资源打包为一个单一的可执行文件，从而无需安装即可运行。以前，要制作绿色软件需要学习很多技术，一般用户难以入门，而 Cameyo 则将此绿化过程变得简单且傻瓜。</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; Cameyo 的原理是利用沙盒（Sandbox）的虚拟化技术，先把所有的动作都记录起来并打包成单个绿色文件，当执行这个&ldquo;绿色软件&rdquo;时，它会临时产生一个虚拟环境来执行，类似影子系统一样，一切涉及的操作都是在这个虚拟环境中完成，并不会去动原本的系统。所以使用 Cameyo 制作的绿色软件还有一个好处就是几乎不会对系统有害。</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; 当然，使用虚拟化技术也有一定的缺点，如果一些跟系统紧密集成的大型软件（譬如杀毒软件等），需要对系统本身做出相当多的改变，则可能会造成绿化失败。</div>
<div>
<p>制作过程就不多说了，附上几个常用软件下载，有需要的可以直接下载使用。</p>
</div>
<ul>
<li>
<h4>休闲游戏类，没事的时候可以玩玩。<br />
			1.<a href="http://www.ctdisk.com/file/4546114" target="_blank">水果忍者</a><br />
			<span style="color:#800000;"><span style="font-size:14px;"><font face="arial, sans-serif"><span style="line-height: 16px;">水果忍者电脑版(切水果游戏)是一款简单的休闲游戏,水果忍者电脑版主要内容是切掉屏幕上不断跳出的各种水果,水果忍者电脑版(切水果游戏)要求玩家动作速度要快.</span></font></span></span></h4>
<p>&nbsp;</p>
<p>2.<a href="http://www.ctdisk.com/file/4546112" target="_blank">植物大战僵尸年度版</a><br />
			<span style="color:#800000;"><span style="font-size:14px;">这个相信很多朋友多有玩过了吧，植物大战僵尸是一个看似简单实则极富策略性的小游戏。可怕的僵尸即将入侵你的家庭，你唯一的防御方式就是您栽种的植物。</span></span></p>
<p>3<span style="background-color: rgb(228, 238, 243); ">.</span><a href="http://www.ctdisk.com/file/4546110" style="font-size: 20px; " target="_blank">蒙特祖玛的宝藏3</a><br />
			<span style="color:#800000;"><span style="font-size:14px;">《蒙特祖玛的宝藏》系列作为休闲消除智益类游戏的代表游戏之一，《蒙特祖玛的宝藏3中文版》问世了。<br />
			除了经典的&ldquo;3-MATCH&rdquo;游戏方式以外，《蒙特祖玛的宝藏3》于前作相比，在画面、道具数量、图腾特效和可解锁内容方面都有了大幅度的提升。 图腾不再是僵硬的几块彩色石头，而是活灵活现的&ldquo;动作明星&rdquo;。</span></span></p>
<p>4.<a href="http://www.ctdisk.com/file/4546058" style="font-size: 20px; " target="_blank">愤怒的小鸟季节版V2.1</a><br />
			<span style="font-size:14px;"><span style="color:#800000;">相信也是很多人有玩过，可以收藏着，嘿嘿。这个是季节版。</span></span></p>
</li>
<li>点击下载 &nbsp;<a href="http://www.ctdisk.com/file/4546400" target="_blank">QQ2011.exe</a><br />
		QQ2011 正式版精简去广告单文件版，这个不用说大家都明白的。懒得写介绍，自己去<a href="http://im.qq.com/qq/2011/">官网查看</a><br />
		&nbsp;</li>
<li>点击下载&nbsp;<a href="http://www.ctdisk.com/file/4546401" target="_blank">qq旋风.exe</a><br />
		QQ旋风 3.9免安装单文件版，<br />
		没有什么好介绍的&hellip;&hellip;&hellip;<br />
		&nbsp;</li>
<li><span style="font-size: 16px; ">点击下载&nbsp;</span><a href="http://www.ctdisk.com/file/4546399" style="font-size: 16px; " target="_blank">QQ游戏2012.exe</a><br />
		QQ游戏2012单文件版。<br />
		想看介绍的自己去<a href="http://qqgame.qq.com/">QQ游戏官网</a>，嘿嘿。<br />
		&nbsp;</li>
</ul>
<p>先发这几个吧，以后再慢慢补充。</p>
<div style="color: #ff00ff"><strong>若无特别注明，均属本站原创文章，转载请注明：</strong> 转载自:<a href="http://chenall.net/">chenall&#039;s blog</a><br /><strong>本文链接地址:</strong> <a href="http://chenall.net/post/portable_apps/">常用单文件绿软分享基于Cameyo</a></div>

<p><a href="http://feedads.g.doubleclick.net/~a/RvwGd_BQWyeJzBQut_iDMBnqSug/0/da"><img src="http://feedads.g.doubleclick.net/~a/RvwGd_BQWyeJzBQut_iDMBnqSug/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/RvwGd_BQWyeJzBQut_iDMBnqSug/1/da"><img src="http://feedads.g.doubleclick.net/~a/RvwGd_BQWyeJzBQut_iDMBnqSug/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Chenall/~4/ThcHUBomyf4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://chenall.net/post/portable_apps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://chenall.net/post/portable_apps/</feedburner:origLink></item>
		<item>
		<title>[分享] 自己动手，在WINDOWS系统中搭建GRUB4DOS编译环境[2012-02-09]</title>
		<link>http://feedproxy.google.com/~r/Chenall/~3/rBuLS1ZXizM/</link>
		<comments>http://chenall.net/post/grub4dos_dev/#comments</comments>
		<pubDate>Thu, 19 Jan 2012 00:00:35 +0000</pubDate>
		<dc:creator>chenall</dc:creator>
				<category><![CDATA[编程]]></category>
		<category><![CDATA[软件]]></category>
		<category><![CDATA[colinux]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[GRUB4DOS]]></category>

		<guid isPermaLink="false">http://chenall.net/?p=804</guid>
		<description><![CDATA[2012-02-07
结合Tinycore和slatiz优点的版本。使用了tinycore的核心+slatiz软件包管理器。相对完美版本，有以下优点

小巧（解开后才70MB不到，使用MSYS/CYGWIN等至少也得100MB以上吧）。
方便，移动性，直接解压到电脑上就可以运行了（不要放在中文目录下）。
默认开启多终端支持（可以按Alt+Fn切换）。
可以自由添加安装软件（基于tinycore的软件包可自动保存）。
使用slatiz的软件包目前不能保存。但是有提供了一个工具可以把tazpkg转为tcz。
可选保存用户配置（默认不保存）
自带的软件包gcc 4.5+svn1.6+git1.7+7z+……。总之下载后就可以直接编译GRUB4DOS相关程序。<span class="readmore"><a href="http://chenall.net/post/grub4dos_dev/" title="[分享] 自己动手，在WINDOWS系统中搭建GRUB4DOS编译环境[2012-02-09]" target="_blank">&#160;【阅读全文】 &#62;&#62;</a></span>]]></description>
			<content:encoded><![CDATA[<p>因为经常使用WINDOWS系统，为了方便直接在WINDOWS下搭建。</p>
<p>使用Colinux可以很方便的在WINDOWS中运行一直真实的Linux环境。</p>
<p>好了，废话不多说了，直接开始了。如果想偷懒的话，有提供了可以直接使用的成品下载。</p>
<p>&nbsp;</p>
<h2>==================2012-02-07==================</h2>
<p>结合Tinycore和slatiz优点的版本。使用了tinycore的核心+slatiz软件包管理器。相对完美版本，有以下优点</p>
<ul>
<li>小巧（解开后才70MB不到，使用MSYS/CYGWIN等至少也得100MB以上吧）。</li>
<li>方便，移动性，直接解压到电脑上就可以运行了（不要放在中文目录下）。</li>
<li>默认开启多终端支持（可以按Alt+Fn切换）。</li>
<li>可以自由添加安装软件（基于tinycore的软件包可自动保存）。<br />
		使用slatiz的软件包目前不能保存。但是有提供了一个工具可以把tazpkg转为tcz。</li>
<li>可选保存用户配置（默认不保存）</li>
<li>自带的软件包gcc 4.5+svn1.6+git1.7+7z+&hellip;&hellip;。总之下载后就可以直接编译<span class='wp_keywordlink'><a href="http://grub4dos.chenall.com" title="下载最新版Grub4dos" target="_blank">grub4dos</a></span>相关程序。当然了也可以作为一个桌面linux来使用。</li>
</ul>
<p>使用方法：<br />
	1.只要三步就可以开始启动 下载－〉解压-&gt;执行。</p>
<p><font face="tahoma, 宋体" style="text-align: left; "><span style="line-height: 20px;">下载<br />
	2012-02-08更新cofs权限问题<br />
	2012-02-09因为git新的版本不可以在COFS上用git下载源码,所以GIT换成1.6版.<br />
	&nbsp;</span></font><a href="http://www.ctdisk.com/file/4551969" style="text-align: left; ">Colinux_tinyslat_grub4dos_Dev.7z</a></p>
<p>增加软件方法：</p>
<p>1.tinycore方案（推荐）<br />
	&nbsp; &nbsp;tce-load -wi packname<br />
	默认使用了163的镜像，可以通过修改opt目录下的tcemirror文件改成使用其它镜像。<br />
	2.slatiz方案（备用）<br />
	&nbsp; tczpkg get-install packname<br />
	这个只是作为备用。下载安装的软件不会被保存。<br />
	3.slatiz方案+tinycore<br />
	&nbsp; 为了解决有时tinycore的软件源没有提供相应软件，而slatiz有提供时，可以使用该方法。<br />
	&nbsp; 首先通过taz2tcz下载slatiz软件并转换为tcz格式。<br />
	&nbsp; taz2tcz packname<br />
	&nbsp; 软件安装<br />
	&nbsp; tce-load -i packname<br />
	注意：1.你需要自己处理软件包的依赖关系（depends），可以使用tazpkg depends packname 查看。然后依次下载并转换所有包。<br />
	&nbsp;2.执行tce-load 时请注意查看上一步最终的软件包名。比如以下是下载xz程序的输出,注意看我们要安装的是<span style="color:#00ff00;">xz</span>，最终的名字是<span style="color:#00ff00;">xz-4.999.9beta</span></p>
<p>&nbsp;</p>
<div><span style="color:#a52a2a;">tc@box:~$ taz2tcz xz</span></div>
<div><span style="color:#a52a2a;">xz-4.999.9beta</span></div>
<div><span style="color:#a52a2a;">Connecting to mirror.slitaz.org (94.23.209.91:80)</span></div>
<div><span style="color:#a52a2a;">xz-4.999.9beta.tazpk 100% |*******************************| 21096 &nbsp; 0:00:00 ETA</span></div>
<div><span style="color:#a52a2a;">tazpkg(slatiz) to tcz (tinycorelinux) packages convert by chenall</span></div>
<div><span style="color:#a52a2a;">Please wait&#8230;.</span></div>
<div><span style="color:#a52a2a;">42 blocks</span></div>
<div><span style="color:#a52a2a;">91 blocks</span></div>
<div><span style="color:#a52a2a;">xz-4.999.9beta converted. you can type tce-load -i xz-4.999.9beta to install.</span></div>
<div><span style="color:#a52a2a;">tc@box:~$ tce-load -i xz-4.999.9beta</span></div>
<div><span style="color:#a52a2a;">/etc/sysconfig/tcedir/optional/xz-4.999.9beta.tcz: OK</span></div>
<div>&nbsp;</div>
<div>==================2012-02-05==================</div>
<p>因为目前用GCC4.6编译出来的GRLDR无法启动，所以重新整了一个GCC4.4的。</p>
<p>相关下载：<br />
	<a href="http://chenall.net/post/tag/colinux/" class="st_tag internal_tag" rel="tag" title="标签 colinux 下的日志">Colinux</a> 主程序 ：<a href="http://www.ctdisk.com/file/4499842" target="_blank">colinux_mini.7z</a><br />
	系统镜像包：&nbsp;<a href="http://www.ctdisk.com/file/4499927" target="_blank">tinycore_colinux_60M_GCC4.4.7z</a></p>
<h2>==================2012-02-04==================</h2>
<p>整合了02-03版tinycore的两个版本优点，完善了一下。新的版本有以下优点</p>
<ul>
<li>占用空间小。</li>
<li>需要的内存也小。</li>
<li>配置灵活，可以选择保存数据。</li>
</ul>
<p>目前提供了以下配置文件</p>
<ol>
<li>tinydev.ini &nbsp;相当于之前的60M版本，不保存数据。</li>
<li>tinydev_tce_cofs.ini &nbsp;用户数据保存到tinycore.gz同目录的home目录下<br />
		使用该配置文件需要先把grubdev.iso解开到同目录下。把配置文件名改为<span style="font-size: 16px; ">tinydev.ini 之后再启动，会自动建立HOME目录。<br />
		需要的文件列表如下：<br />
		tce 目录<br />
		tinycore.gz 文件<br />
		tinydev.ini 配置文件<br />
		启动之后可以使用tce-load命令下载新的软件并且可以保存。如果你对tinycore比较了解，直接添加软件到TCE目录就行了。</span></li>
</ol>
<p><span style="font-size: 16px; ">下载地址：&nbsp;tinycore_colinux_60M.7z</span><br />
	==================2012-02-03==================</p>
<p><span style="font-size: 16px; ">之前的版本使用了比较完整的Linux来搭建，占用空间比较大，我用<a href="http://distro.ibiblio.org">tinycorelinux</a>重新定制了一个比较小巧的版本，有兴趣的可以下载试用</span></p>
<p><span style="color: rgb(165, 42, 42); font-size: 29px; ">使用方法：</span></p>
<p style="font-size: 16px; ">1.先下载Colinux主程序和系统包。<br />
	2.在E:新建一个Colinux目录，用于和Linux共享，或方便存放文件。<br />
	3.Colinux解压到非中文目录下，系统包直接解压到Colinux目录中。<br />
	4.使用Colinux目录下的&ldquo;<span style="font-size: 16px; color: rgb(178, 34, 34); ">快速启动.cmd</span>&rdquo;来直接启动。<br />
	5.你也可以安装为服务使用&ldquo;<span style="font-size: 16px; color: rgb(178, 34, 34); ">安装服务.cmd</span>&rdquo;就行了。</p>
<h1><span style="color:#b22222;">相关文件下载：</span></h1>
<ol>
<li>Colinux 主程序 &nbsp;<a href="http://code.google.com/p/grubutils/downloads/detail?name=colinux_mini.7z&amp;can=1&amp;q=">colinux_mini</a><br />
		直接解压到非中文的目录即可使用</li>
<li>定制好的系统包（选择其中一个就行了），解压到Colinux安装目录下。<br />
		1.最小巧只需要60MB空间，缺点：不可保存用户配置完全在内存中运行。<br />
		<span style="font-size: 16px; ">&nbsp; &nbsp;&nbsp;tinycore_colinux_dev.7z&nbsp;<br />
		2.中等，需要160MB，缺点：占用空间比较大，但是可以保存用户配置。</span><br />
		<span style="font-size: 16px; ">&nbsp; &nbsp;tinycore_colinux_fs.7z&nbsp;</span><br />
		3.之前的版本重新打包的文件需要2G+128MB空间<br />
		<span style="font-size: 16px; ">&nbsp; &nbsp;<a href="http://code.google.com/p/grubutils/downloads/detail?name=Debian_colinux.7z&amp;can=1&amp;q=">Debian_colinux.7</a></span></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><span style="font-size: 16px; ">基于tinycore的两个版本所安装的程序都是一样的包含以下主要和相关联的程序。<br />
			GCC 4.6 + GIT + SVN&nbsp;<br />
			区别是，一个是RAM版本，一个非RAM版本。<br />
			建议使用非RAM版本，这样可以保存你的配置文件。</span></p>
</li>
</ol>
<p>默认的COFS目录是E:\COLINUX，你需要先在WINDOWS中建立以上目录。然后就开始操作了<br />
	在linux中使用以下命令就可以编译一个GRUB4DOS<br />
	cd /mnt/cofs<br />
	svn co http://<a href="http://chenall.net/post/tag/grub4dos/" class="st_tag internal_tag" rel="tag" title="标签 GRUB4DOS 下的日志">grub4dos</a>-chenall.googlecode.com/svn/trunk <a href="http://chenall.net/post/tag/grub4dos/" class="st_tag internal_tag" rel="tag" title="标签 GRUB4DOS 下的日志">grub4dos</a>-src<br />
	cd <a href="http://chenall.net/post/tag/grub/" class="st_tag internal_tag" rel="tag" title="标签 GRUB 下的日志">grub</a>4dos-src<br />
	make<br />
	如果你习惯用git也可以用git来下载源码<br />
	git clone&nbsp;git://github.com/chenall/GRUB4DOS.git<br />
	cd GRUB4DOS<br />
	make</p>
<p>其它说明：tinycore默认是超级用户，可以用exit命令退出。用sudo su进入超级用户模式。要增加软件可以使用tce-load命令比如以下命令就可以下载并安装xterm<br />
	tce-load -wi xterm<br />
	另外已经重定向X的显示到主机。只要主机有安装X SERVER在LINUX下启动X程序就会在主机上显示。</p>
<h2><span style="font-size: 16px; ">=====</span><span style="font-size: 16px; ">==============2012-01-19</span><span style="font-size: 16px; ">==============</span><span style="font-size: 16px; ">=====</span></h2>
<p>首先要准备的文件列表<br />
	以下软件都在这里<a href="http://sourceforge.net/projects/colinux/files/">http://sourceforge.net/projects/colinux/files/</a> 可以自己选择其它版本下载</p>
<ol>
<li>Colinux我选用最新的版本&nbsp; <a href="http://sourceforge.net/projects/colinux/files/Snapshots/devel-20110807-Snapshot/devel-coLinux-20110807.exe/download">devel-coLinux-20110807.exe</a></li>
<li>用于colinux的linux镜像&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://sourceforge.net/projects/colinux/files/Images%202.6.x%20Debian/Debian%206.0%20Squeeze/Debian-6.0.1-squeeze.7z/download">Debian-6.0.1-squeeze</a></li>
</ol>
<p>安装Colinux，直接默认安装就行了。<br />
	安装完之后，解压Debian-6.0.1的压缩包到Colinux安装目录下。会多出几个文件。<br />
	直接运行解压出来的squeeze.bat就可以启动一个debian了。</p>
<p>启动后直接输入用户名root登录</p>
<p>wee需要在gcc 4.5的环境中编译，否则生成的文件太大超过了32KB。如果你不需要编译wee可以略过以下内容。<br />
	目前debian的gcc 4.5软件包需要用测试版才能直接安装。所以需要修改软件源，增加一个测试版的源。</p>
<p>============分隔线，增加debian软件源开始======================</p>
<p style="BACKGROUND-COLOR: #000000"><font>修改源列表文件</font><br />
	<font color="#ff0000">vi /etc/apt/sources.list</font><br />
	看看里面有没有包含 testing的行，如果有就不用改了。<br />
	像这个只有一行<br />
	<font color="#808080">deb</font> <a href="http://ftp.debian.org/debian"><font color="#808080" size="4">http://ftp.debian.org/debian</font></a> <font color="#808080">squeeze main</font><br />
	要增加一个testing的源。<br />
	懂得VI的可以略过以下内容.开始修改。<br />
	首先复制当前行（直输入&#39;<font color="#ff0000">yy</font>&#39;即连按两次&#39;<font color="#ff0000">y</font>&#39;）<br />
	然后直接粘贴（直接按&#39;<font color="#ff0000">p</font>&#39;键）现在有两行了<br />
	修改其中一行的&quot;squeeze&quot;为&quot;testing&quot;（光标移到&#39;<font color="#ff0000">s</font>&#39;处输入&#39;<font color="#ff0000">dw</font>&#39;，再按&#39;<font color="#ff0000">I</font>&#39;输入&quot;<font color="#ff0000">testing</font> &quot;。)<br />
	最终就是<br />
	<font color="#808080">deb</font> <a href="http://ftp.debian.org/debian"><font color="#808080" size="4">http://ftp.debian.org/debian</font></a> <font color="#808080" size="4">squeeze main<br />
	deb</font> <a href="http://ftp.debian.org/debian"><font color="#808080" size="4">http://ftp.debian.org/debian</font></a><font color="#808080">&nbsp;testing main</font><br />
	保存并退出（先按一下&quot;<font color="#ff0000">Esc</font>&quot;键再输入<font color="#ff0000">&quot;:x&quot;</font>回车即可）</p>
<p>好了现在更新一下源信息。<br />
	<font color="#ff6800">apt-get update</font></p>
<p>============分隔线，增加debian软件源完成======================</p>
<p>安装GRUB4DOS编译需要的软件包。<br />
	注：如果不需要编译wee可以安装gcc-4.3或gcc-4.4会比较稳定。</p>
<p><font color="#ff6800">apt-get install gcc-4.5 autoconf automake make patch git subversion</font></p>
<p>注：git和subversion是源码管理工具，用于下载源码的，可以安装其中一个就行了。</p>
<p>所有的提示直接按&#39;Y&#39;或回车确认。坐着泡一杯茶再过来，差不多装好了。<br />
	如果网络环境很给力的话，几分钟就行了。否则可能得等上半个小时吧。</p>
<p>电脑：俺正在努力下载安装软件，没空陪你了，你自己玩去吧。</p>
<p>&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..</p>
<p>半个小时后。</p>
<p>好像差不多了。。继续工作。</p>
<p>等等，还少了压缩软件，如果你只是玩玩，不要也罢。</p>
<p><font color="#ff6800">apt-get install p7zip-full zip</font></p>
<p>现在已经万事具备，只欠东风了。</p>
<p>只要下载源码然后就可以编译了。新手请最好看完后面内容再下载编译测试。</p>
<p>下载源码方法:<br />
	<font color="#ff6800">svn co</font> <a href="http://grub4dos-chenall.googlecode.com/svn/trunk"><font color="#ff6800">http://grub4dos-chenall.googlecode.com/svn/trunk</font></a> <font color="#ff6800">grub4dos-src</font></p>
<p>或</p>
<p><font color="#ff6800">git clone git://github.com/chenall/grub4dos.git grub4dos-src</font></p>
<p>编译：</p>
<p><font color="#ff6800">cd grub4dos-src<br />
	make</font></p>
<p style="BACKGROUND-COLOR: #ffffff">如果你对linux的操作不熟悉，你可以在WINDOWS中修改源码，改完之后再进入LINUX去编译。</p>
<p style="BACKGROUND-COLOR: #ffffff">colinux支持cofs文件系统，可以和WINDOWS进行文件夹共享。</p>
<p style="BACKGROUND-COLOR: #ffffff">添加cofs文件系统方法.</p>
<p style="BACKGROUND-COLOR: #ffffff">在d:新建一个文件夹名字就叫做cofs,用记事本打开squeeze.conf<br />
	添加一行<br />
	cofs0=d:\cofs</p>
<p style="BACKGROUND-COLOR: #ffffff">先关闭linux，输入halt就行了。</p>
<p style="BACKGROUND-COLOR: #ffffff">再次双击squeeze.bat启动debian，登录<br />
	输入以下命令挂载cofs<br />
	<font color="#ff6800">mkdir /mnt/cofs<br />
	mount -t cofs cofs0 /mnt/cofs<br />
	cd /mnt/cofs<br />
	mkdir test</font></p>
<p>要让它启动时自动挂载可以添加一行内容到/etc/fstab文件中<br />
	<font color="#808000">/dev/cofs0 /mnt/cofs cofs</font><br />
	直接用echo添加就行了，也可以用VI修改<br />
	<font color="#ff6800">echo /dev/cofs0 /mnt/cofs cofs &gt;&gt; /etc/fstab</font></p>
<p>如果电脑d:\cofs目录下有生成一个test文件夹，则证明成功挂载<br />
	<font color="#ff6800">cd /mnt/cofs<br />
	svn co</font> <a href="http://grub4dos-chenall.googlecode.com/svn/trunk"><font color="#ff6800">http://grub4dos-chenall.googlecode.com/svn/trunk</font></a> <font color="#ff6800">grub4dos-src<br />
	cd grub4dos-src<br />
	make</font></p>
<p><font color="#000000">以后你就可以在WINDOWS中打开d:\cofs这个目录，修改里面的源码，然后再到linux里面去编译就行了。</font></p>
<p>懒人可以直接下载绿色包，解压后就可以直接使用。<br />
	<a href="http://grubutils.googlecode.com/files/grub4dos_colinux_debian.7z">grub4dos_colinux_debian.7z</a></p>
<div style="color: #ff00ff"><strong>若无特别注明，均属本站原创文章，转载请注明：</strong> 转载自:<a href="http://chenall.net/">chenall&#039;s blog</a><br /><strong>本文链接地址:</strong> <a href="http://chenall.net/post/grub4dos_dev/">[分享] 自己动手，在WINDOWS系统中搭建GRUB4DOS编译环境[2012-02-09]</a></div>

<p><a href="http://feedads.g.doubleclick.net/~a/9SqGvKeHOCFCVnoLLwbZUysiV_0/0/da"><img src="http://feedads.g.doubleclick.net/~a/9SqGvKeHOCFCVnoLLwbZUysiV_0/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/9SqGvKeHOCFCVnoLLwbZUysiV_0/1/da"><img src="http://feedads.g.doubleclick.net/~a/9SqGvKeHOCFCVnoLLwbZUysiV_0/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Chenall/~4/rBuLS1ZXizM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://chenall.net/post/grub4dos_dev/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://chenall.net/post/grub4dos_dev/</feedburner:origLink></item>
		<item>
		<title>[分享]电脑防毒小技巧一则</title>
		<link>http://feedproxy.google.com/~r/Chenall/~3/awGN3ynyge8/</link>
		<comments>http://chenall.net/post/newext/#comments</comments>
		<pubDate>Wed, 11 Jan 2012 13:36:32 +0000</pubDate>
		<dc:creator>chenall</dc:creator>
				<category><![CDATA[个人日记]]></category>

		<guid isPermaLink="false">http://chenall.net/?p=802</guid>
		<description><![CDATA[现在的电脑病毒越来越多，也越来越厉害，有时真的有点防不胜防。
	并且它特别喜欢感染可执行程序文件，因为这样就可以一传十，十传百，快速传播。
这里分享一个小技巧，可以让你的应用程序免受感染（当然只是大部份情况下免疫）
一般情况下病毒都是根据文件的扩展名来确定这个文件是否应用程序。所以可以通过修改扩展名的方式来避免感染。
<span class="readmore"><a href="http://chenall.net/post/newext/" title="[分享]电脑防毒小技巧一则" target="_blank">&#160;【阅读全文】共748字</a></span>]]></description>
			<content:encoded><![CDATA[<p>现在的电脑病毒越来越多，也越来越厉害，有时真的有点防不胜防。<br />
	并且它特别喜欢感染可执行程序文件，因为这样就可以一传十，十传百，快速传播。</p>
<p>这里分享一个小技巧，可以让你的应用程序免受感染（当然只是大部份情况下免疫）</p>
<p>一般情况下病毒都是根据文件的扩展名来确定这个文件是否应用程序。所以可以通过修改扩展名的方式来避免感染。</p>
<p><span style="font-size: 16px; ">这个技巧就是通过修改可执行文件的扩展名来避免感染。</span><br />
	<span style="font-size: 16px; ">缺点是必须添加新的文件关联才可以双击启动这个程序。</span></p>
<p>附件的批处理文件默认添加了一个exa的扩展名，你可以改成其它的。<br />
	执行了这个批处理文件之后，你就可以把你的一些比较重要的应用程序的扩展名改变一下。程序还是可以启动，只是扩展名变了，万一哪天又中毒的，病毒就不会自动找上门来了。</p>
<p>注：可能得重新启动才有效果。</p>
<p>因为系统默认情况下是隐藏应用程序的扩展名的，你可以通过以下方法打开显示。</p>
<p>取消文件夹选项中的隐藏已知文件类型的扩展名就行了。</p>
<p><a href="http://photo.staticsdo.com/a1/294/226/270/90524-49499083-8.png" rel="lightbox[802]"><img alt="" src="http://photo.staticsdo.com/a1/294/226/270/90524-49499083-8.png" style="width: 396px; height: 448px; " /></a></p>
<p>如果不知道在哪里改的可以直接下载附件，里面有隐藏和显示的注册表。<br />
	直接双陆对应的注册表文件就可以了。</p>
<div style="background:#fdfdfd;color:black;"><u>Batchfile语言</u>: <a href="http://fayaa.com/code/view/25138/">Codee#25138</a></div>
<div class="source" style="font-family: 'Courier New', Consolas, 'Lucida Console'; color: rgb(0, 0, 0); background-color: rgb(249, 247, 237); "><span style="color: rgb(0, 0, 0); ">@</span><span style="color: rgb(0, 0, 128); font-weight: bold; ">echo</span> <span style="color: rgb(0, 0, 128); font-weight: bold; ">off</span><br />
	<span style="color: rgb(0, 136, 0); font-style: italic; ">::添加自定义可执行程序扩展名批处理 by chenall</span><br />
	<span style="color: rgb(0, 136, 0); font-style: italic; ">::http://chenall.net</span><br />
	<span style="color: rgb(0, 0, 128); font-weight: bold; ">call</span> <span style="color: rgb(0, 0, 0); ">:add_ext</span> .exa<br />
	<span style="color: rgb(0, 0, 128); font-weight: bold; ">goto</span> <span style="color: rgb(0, 0, 0); ">:eof</span></p>
<p>	<span style="color: rgb(0, 0, 0); ">:add_ext</span><br />
	<span style="color: rgb(0, 0, 128); font-weight: bold; ">if</span> <span style="color: rgb(0, 0, 255); ">&quot;%1&quot;</span><span style="color: rgb(0, 0, 0); ">==</span><span style="color: rgb(0, 0, 255); ">&quot;&quot;</span> <span style="color: rgb(0, 0, 128); font-weight: bold; ">goto</span> <span style="color: rgb(0, 0, 0); ">:eof</span><br />
	assoc <span style="color: rgb(0, 0, 0); ">%1</span><span style="color: rgb(0, 0, 0); ">=</span>exefile<br />
	reg add <span style="color: rgb(0, 0, 255); ">&quot;HKCR\%1\PersistentHandler&quot;</span> <span style="color: rgb(0, 0, 0); ">/ve</span> <span style="color: rgb(0, 0, 0); ">/d</span> {<span style="color: rgb(0, 0, 255); ">098</span>f<span style="color: rgb(0, 0, 255); ">2470</span>-bae<span style="color: rgb(0, 0, 255); ">0-11</span>cd-b<span style="color: rgb(0, 0, 255); ">579-08002</span>b<span style="color: rgb(0, 0, 255); ">30</span>bfeb} <span style="color: rgb(0, 0, 0); ">/f</span><br />
	reg add HKCR\<span style="color: rgb(0, 0, 0); ">%1</span> <span style="color: rgb(0, 0, 0); ">/v</span> <span style="color: rgb(0, 0, 255); ">&quot;Content Type&quot;</span> <span style="color: rgb(0, 0, 0); ">/d</span> <span style="color: rgb(0, 0, 255); ">&quot;application/x-msdownload&quot;</span> <span style="color: rgb(0, 0, 0); ">/f</span><br />
	<span style="color: rgb(0, 0, 128); font-weight: bold; ">shift</span><br />
	<span style="color: rgb(0, 0, 128); font-weight: bold; ">goto</span> <span style="color: rgb(0, 0, 0); ">:add_ext</span></div>
<p>附件下载&nbsp;</p>
<p><a href="http://1000eb.com/6767" target="_blank">exa.rar</a></p>
<div style="color: #ff00ff"><strong>若无特别注明，均属本站原创文章，转载请注明：</strong> 转载自:<a href="http://chenall.net/">chenall&#039;s blog</a><br /><strong>本文链接地址:</strong> <a href="http://chenall.net/post/newext/">[分享]电脑防毒小技巧一则</a></div>

<p><a href="http://feedads.g.doubleclick.net/~a/ypx_2hNmqocdGRjvGXNVHLmS4Nk/0/da"><img src="http://feedads.g.doubleclick.net/~a/ypx_2hNmqocdGRjvGXNVHLmS4Nk/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/ypx_2hNmqocdGRjvGXNVHLmS4Nk/1/da"><img src="http://feedads.g.doubleclick.net/~a/ypx_2hNmqocdGRjvGXNVHLmS4Nk/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Chenall/~4/awGN3ynyge8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://chenall.net/post/newext/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://chenall.net/post/newext/</feedburner:origLink></item>
		<item>
		<title>卡蝶机</title>
		<link>http://feedproxy.google.com/~r/Chenall/~3/O3CHt7WUegQ/</link>
		<comments>http://chenall.net/post/cardrom/#comments</comments>
		<pubDate>Wed, 11 Jan 2012 12:22:10 +0000</pubDate>
		<dc:creator>chenall</dc:creator>
				<category><![CDATA[个人日记]]></category>
		<category><![CDATA[GRUB4DOS]]></category>
		<category><![CDATA[卡蝶机]]></category>

		<guid isPermaLink="false">http://chenall.net/?p=797</guid>
		<description><![CDATA[卡碟機 是一項很具創意的發明。 它可以讓你把光碟 ISO 映像檔「燒」到 MicroSD 卡中， 而電腦就會從媒體身份（Media Type）的層面把 MicroSD 卡辨認為一部傳統的 DVD/CD 光碟機。 系統管理員可以把操作系統的安裝光碟內容寫到卡碟機裡的 MicroSD 卡裡， 就可以免卻使用外置式光碟機和燒碟的麻煩，方便又環保。
[相关介绍]
●光碟機/讀卡器二合一
●可燒錄ISO 映像檔,模擬USB 光碟機
<span class="readmore"><a href="http://chenall.net/post/cardrom/" title="卡蝶机" target="_blank">&#160;【阅读全文】共804字</a></span>]]></description>
			<content:encoded><![CDATA[<div class="PublishedByWebStory-[6]1_580E255B0E8840AE98DBBC3C7C65ACCC_F1723BFC80754C03B09D7CA47452A333">
<p><font color="#0000FF" face="Arial">卡碟機 是一項很具創意的發明。<br /> 它可以讓你把光碟 ISO 映像檔「燒」到 MicroSD 卡中，<br /> 而電腦就會從媒體身份</font><font style="TEXT-ALIGN: left; LINE-HEIGHT: normal; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(255,255,255); FONT-VARIANT: normal; FONT-STYLE: normal; TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT-FAMILY: Arial, Verdana, sans-serif; WHITE-SPACE: normal; ORPHANS: 2; FONT-WEIGHT: normal; WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" color="#0000FF" size="3">（Media Type）的層面把 MicroSD 卡辨認為一部傳統的 DVD/CD 光碟機。<br /> 系統管理員可以把操作系統的安裝光碟內容寫到</font><font style="TEXT-ALIGN: left; LINE-HEIGHT: normal; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(255,255,255); FONT-VARIANT: normal; FONT-STYLE: normal; TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT-FAMILY: Arial, Verdana, sans-serif; WHITE-SPACE: normal; ORPHANS: 2; FONT-WEIGHT: normal; WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" color="#0000FF" size="3">卡碟機裡的 MicroSD 卡裡，<br /> 就可以免卻使用外置式光碟機和燒碟的麻煩，方便又環保。</font></p>
<p>[相关介绍]</p>
<p style="TEXT-ALIGN: left; PADDING-BOTTOM: 0px; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; MARGIN: 0px; PADDING-LEFT: 0px; LETTER-SPACING: normal; PADDING-RIGHT: 0px; FONT: 13px/20px Verdana, Geneva, sans-serif; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(97,97,97); WORD-SPACING: 0px; PADDING-TOP: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">●光碟機/讀卡器二合一</p>
<p style="TEXT-ALIGN: left; PADDING-BOTTOM: 0px; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; MARGIN: 0px; PADDING-LEFT: 0px; LETTER-SPACING: normal; PADDING-RIGHT: 0px; FONT: 13px/20px Verdana, Geneva, sans-serif; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(97,97,97); WORD-SPACING: 0px; PADDING-TOP: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">●可燒錄ISO 映像檔,模擬USB 光碟機</p>
<p style="TEXT-ALIGN: left; PADDING-BOTTOM: 0px; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; MARGIN: 0px; PADDING-LEFT: 0px; LETTER-SPACING: normal; PADDING-RIGHT: 0px; FONT: 13px/20px Verdana, Geneva, sans-serif; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(97,97,97); WORD-SPACING: 0px; PADDING-TOP: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">●隨插即用,免驅動程式</p>
<p style="TEXT-ALIGN: left; PADDING-BOTTOM: 0px; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; MARGIN: 0px; PADDING-LEFT: 0px; LETTER-SPACING: normal; PADDING-RIGHT: 0px; FONT: 13px/20px Verdana, Geneva, sans-serif; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(97,97,97); WORD-SPACING: 0px; PADDING-TOP: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">●無光碟機蕊,低耗電,使用壽命長.免用光碟片,無耗材,省錢又環保</p>
<p style="TEXT-ALIGN: left; PADDING-BOTTOM: 0px; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; MARGIN: 0px; PADDING-LEFT: 0px; LETTER-SPACING: normal; PADDING-RIGHT: 0px; FONT: 13px/20px Verdana, Geneva, sans-serif; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(97,97,97); WORD-SPACING: 0px; PADDING-TOP: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">&nbsp;</p>
<p style="TEXT-ALIGN: left; PADDING-BOTTOM: 0px; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; MARGIN: 0px; PADDING-LEFT: 0px; LETTER-SPACING: normal; PADDING-RIGHT: 0px; FONT: 13px/20px Verdana, Geneva, sans-serif; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(97,97,97); WORD-SPACING: 0px; PADDING-TOP: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">更详细的介绍可以点这里查看。</p>
<p style="TEXT-ALIGN: left; PADDING-BOTTOM: 0px; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; MARGIN: 0px; PADDING-LEFT: 0px; LETTER-SPACING: normal; PADDING-RIGHT: 0px; FONT: 13px/20px Verdana, Geneva, sans-serif; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(97,97,97); WORD-SPACING: 0px; PADDING-TOP: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><a href="https://docs.google.com/viewer?url=http%3A%2F%2Fjlanlingtech.web-maker.com.tw%2Fupload%2F20111004173405.pdf">https://docs.google.com/viewer?url=http%3A%2F%2Fjlanlingtech.web-maker.com.tw%2Fupload%2F20111004173405.pdf</a></p>
<p style="TEXT-ALIGN: left; PADDING-BOTTOM: 0px; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; MARGIN: 0px; PADDING-LEFT: 0px; LETTER-SPACING: normal; PADDING-RIGHT: 0px; FONT: 13px/20px Verdana, Geneva, sans-serif; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(97,97,97); WORD-SPACING: 0px; PADDING-TOP: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">&nbsp;</p>
<p style="TEXT-ALIGN: left; PADDING-BOTTOM: 0px; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; MARGIN: 0px; PADDING-LEFT: 0px; LETTER-SPACING: normal; PADDING-RIGHT: 0px; FONT: 13px/20px Verdana, Geneva, sans-serif; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(97,97,97); WORD-SPACING: 0px; PADDING-TOP: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">或这里下载PDF格式</p>
<p style="TEXT-ALIGN: left; PADDING-BOTTOM: 0px; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; MARGIN: 0px; PADDING-LEFT: 0px; LETTER-SPACING: normal; PADDING-RIGHT: 0px; FONT: 13px/20px Verdana, Geneva, sans-serif; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(97,97,97); WORD-SPACING: 0px; PADDING-TOP: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><a href="http://hinet.dyndns.org/cardrom_manual.pdf">http://hinet.dyndns.org/cardrom_manual.pdf</a></p>
<p style="TEXT-ALIGN: left; PADDING-BOTTOM: 0px; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; MARGIN: 0px; PADDING-LEFT: 0px; LETTER-SPACING: normal; PADDING-RIGHT: 0px; FONT: 13px/20px Verdana, Geneva, sans-serif; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(97,97,97); WORD-SPACING: 0px; PADDING-TOP: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">&nbsp;</p>
<p style="TEXT-ALIGN: left; PADDING-BOTTOM: 0px; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; MARGIN: 0px; PADDING-LEFT: 0px; LETTER-SPACING: normal; PADDING-RIGHT: 0px; FONT: 13px/20px Verdana, Geneva, sans-serif; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(97,97,97); WORD-SPACING: 0px; PADDING-TOP: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">[一些截图]</p>
<ul>
<li>初始，还没有烧录ISO的状态<br /> <a href="http://photo.staticsdo.com/a1/410/315/266/90515-49499083-8.jpg" rel="lightbox[797]"><img border="0" src="http://photo.staticsdo.com/a1/410/315/266/90515-49499083-8.jpg" width="500" height="105"/></a></li>
<li>已经烧录好的装态<br /> <a href="http://photo.staticsdo.com/a1/358/33/230/90517-49499083-8.jpg" rel="lightbox[797]"><img border="0" src="http://photo.staticsdo.com/a1/358/33/230/90517-49499083-8.jpg" width="500" height="62"/></a></li>
<li>烧录ISO的界面<br /> <a href="http://photo.staticsdo.com/a1/294/271/368/90520-49499083-8.jpg" rel="lightbox[797]"><img border="0" src="http://photo.staticsdo.com/a1/294/271/368/90520-49499083-8.jpg" width="500" height="183"/></a>
<p> <a href="http://photo.staticsdo.com/a1/90/411/219/90516-49499083-8.png" rel="lightbox[797]"><img border="0" src="http://photo.staticsdo.com/a1/90/411/219/90516-49499083-8.png" width="500" height="186"/></a></li>
<li>烧录时的确认，使用第一种方式时每次都要重新格式化。所以建议选择固定大小。<br /> <a href="http://photo.staticsdo.com/a1/346/103/436/90519-49499083-8.jpg" rel="lightbox[797]"><img border="0" src="http://photo.staticsdo.com/a1/346/103/436/90519-49499083-8.jpg" width="489" height="201"/></a></li>
<li>启动测试界面，注：新的电脑一般按F8或F10都会有选择启动设备的界面，类似如下的。<br /> <img border="0" src="http://photo.staticsdo.com/a1/282/298/24/90518-49499083-8.jpg"/></li>
</ul>
<p>后记：经过一段时间的测试，效果不错。比如应急时，可以直接写入一个系统安装盘的ISO文件，然后用它来安装系统。使用了固定格式的模式之后可以随意更新ISO文件来改变光驱里面的内容而不影响SD卡里面的内容。<br /> 1.这个SD卡还可以放到其它读卡器上正常使用，只要不重新分区格式化对虚拟光驱没有影响。<br /> 2.可以使用多个SD卡，通过更换SD卡来更换光驱内容相当于（换光盘）体积比光盘小多了，呵呵。还是挺方便的。<br /> 3.以后可能还支持在一张SD卡上写入多个ISO文件。<br /> 4.虽然是虚拟的，但是对于系统来说这是真实存在的设备，不需要其它设置就可以直接使用。</p>
<p><font color="#800000" size="4">[购买]</font></p>
<p><a href="http://item.taobao.com/item.htm?id=14191084868&amp;ref=http%3A%2F%2Fzhushou007.com%2Furl%2F5drg7.html&amp;ali_trackid=2:mm_14266497_0_0:1326282764_3z2_420997902">想要的可以点这里进入购买</a></p>
<p>&nbsp;</p>
</div>
<div style="color: #ff00ff"><strong>若无特别注明，均属本站原创文章，转载请注明：</strong> 转载自:<a href="http://chenall.net/">chenall&#039;s blog</a><br /><strong>本文链接地址:</strong> <a href="http://chenall.net/post/cardrom/">卡蝶机</a></div>

<p><a href="http://feedads.g.doubleclick.net/~a/6oNFtIYLVWkpgDs6kn9Xiw6lH1Q/0/da"><img src="http://feedads.g.doubleclick.net/~a/6oNFtIYLVWkpgDs6kn9Xiw6lH1Q/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/6oNFtIYLVWkpgDs6kn9Xiw6lH1Q/1/da"><img src="http://feedads.g.doubleclick.net/~a/6oNFtIYLVWkpgDs6kn9Xiw6lH1Q/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Chenall/~4/O3CHt7WUegQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://chenall.net/post/cardrom/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://chenall.net/post/cardrom/</feedburner:origLink></item>
		<item>
		<title>[分享] Windows NT 系列通用启动盘[2011-12-14]</title>
		<link>http://feedproxy.google.com/~r/Chenall/~3/9VUpBsDd4lg/</link>
		<comments>http://chenall.net/post/ntboot/#comments</comments>
		<pubDate>Wed, 14 Dec 2011 02:40:00 +0000</pubDate>
		<dc:creator>chenall</dc:creator>
				<category><![CDATA[原创分享]]></category>
		<category><![CDATA[软件]]></category>
		<category><![CDATA[GRLDR]]></category>
		<category><![CDATA[GRUB]]></category>
		<category><![CDATA[GRUB4DOS]]></category>
		<category><![CDATA[ntboot]]></category>

		<guid isPermaLink="false">http://chenall.net/?p=117</guid>
		<description><![CDATA[2011-12-14更新
1.使用新的GRUB4DOS。
2.自动检测支持的系统。（菜单1）<span class="readmore"><a href="http://chenall.net/post/ntboot/" title="[分享] Windows NT 系列通用启动盘[2011-12-14]" target="_blank">&#160;【阅读全文】 &#62;&#62;</a></span>]]></description>
			<content:encoded><![CDATA[<div class="PublishedByWebStory-[6]1_4E8B324ACB384191BEFFE14285F52302_60BA81263C4A4D8CB064376B794F079E">
<p>【说明】<br />
		1.本启动盘可以用于直接启动硬盘上的NT系统.可以从任意地方加载这个镜像文件进行启动。<br />
		可以通过本镜像启动硬盘上的Windows系统,不依赖硬盘上的系统引导文件.<br />
		也可以用于U盘或光盘启动时,直接启动硬盘上的其它系统.<br />
		一盘在手,启动无优.</p>
<p>2.支持的系统32位/64位</p>
<div>
<ol>
<li>Windows 2000</li>
<li>Windows xp</li>
<li>Windows 2003</li>
<li>Windows Vista</li>
<li>Windows 7</li>
<li>Windows 2008</li>
<li>ram xp IMG镜像</li>
<li>VHD WIN7/2008(不需要硬盘上的启动文件,只需要一个VHD文件)</li>
<li>WIM PE3.0(同上,只需要一个PE的WIM镜像文件即可)</li>
<li>PE1.X（只需要一个内核的镜像文件像WINPE.IMG/WINPE.IM_/WINPE.ISO/WINPE.IS_之类的）</li>
<li>新增支持直接使用ISO来安装系统（支持FIRADISK/WINVBLK/VBOOT三种驱动方式）</li>
<li>新增支持WIM格式的 PE1.X&nbsp;</li>
</ol></div>
<p>3.支持的系统目录WINNT和WINDOWS.<span style="color: #ff00ff;">新版已更新，支持任意目录</span></p>
<p>４.当硬盘上的系统启动文件丢失或损坏时，可以直接使用本启动盘来启动系统应急。</p>
<p>【使用方法】</p>
<p>1.直接刻到光盘上启动（新版）。</p>
<p>2.使用<span class='wp_keywordlink'><a href="http://grub4dos.chenall.com" title="下载最新版Grub4dos" target="_blank">grub4dos</a></span>或syslinux等工具调用启动。<br />
		例子.<a href="http://chenall.net/post/tag/grub4dos/" class="st_tag internal_tag" rel="tag" title="标签 GRUB4DOS 下的日志">Grub4dos</a><br />
		<span style="color: #ff6800;">title <a href="http://chenall.net/post/tag/ntboot/" class="st_tag internal_tag" rel="tag" title="标签 ntboot 下的日志">ntboot</a><br />
		map &#8211;mem /ntboot.iso (0xff)<br />
		map &#8211;hook<br />
		chainloader (0xff)</span></p>
<div>其它用途.<br />
		删除并备份自己电脑上的引导文件,使之不能引导,这样别人就不能使用你的电脑了.</div>
<div>
<p>自己要用时直接使用U盘或其它启动工具启动该镜像进行启动.</p>
<p>欢迎有兴趣的朋友一起研究,讨论.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
</p></div>
<div><span class='wp_keywordlink'><a href="http://bbs.wuyou.com" title="无忧启动论坛" target="_blank">无忧</a></span>启动论坛专贴: <a href="http://bbs.wuyou.com/viewthread.php?tid=190203">http://bbs.wuyou.com/viewthread.php?tid=190203</a></div>
<div>【截图&amp;介绍】</div>
<ul>
<li>帮助信息(见后面详细介绍)<br />
			<a href="http://photo.staticsdo.com/a1/166/174/265/72715-49499083-8.png" rel="lightbox[117]"><img alt="" src="http://photo.staticsdo.com/a1/166/174/265/72715-49499083-8.png" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; width: 500px; height: 172px; " /></a><br />
			1.<span style="color:#b22222;"> NT5|NT6=root|file</span><br />
			启动NT5或NT6系统.可以指定系统分区root,如果没有指定则自动查找.<br />
			file 指定一个文件来启动.<br />
			NT5可以指定一个IMG文件(使用NTLDR调用这个IMG镜像启动)<br />
			NT6可以指定一个WIM文件或VHD文件.直接从这个文件启动.<br />
			2. <span style="color:#b22222;">PE1=file [PDIR=pdir] [OPTIONS=options]</span><br />
			启动PE1.X系统,PDIR参数替换默认的系统WXPE目录(原版的PE是I386)<br />
			OPTIONS指定其它要附加的参数.注意参数中的&quot;/&quot;要换成&quot;#&quot;<br />
			3<span style="color:#b22222;">.VBOOT=file [options...]</span><br />
			调用VBOOT来启动系统,file指定要启动的文件VHD/VMDK之类的.<br />
			4.ISO_INST,使用硬盘上的ISO文件来安装系统.支持firadisk/vboot/winvblk三种驱动.<br />
			5.如果你的内存足够大则在安装系统时可以使用@cdrom代替cdrom,这时会把镜像加载到内存,默认是直接映射,加载到内存安装的速度会比较快.<br />
			若是使用#cdrom可以把镜像加载到高位内存。一些参数用法可以看NTBOOT.LST里面的菜单演示.</li>
<li>启动菜单演示<br />
			<a href="http://photo.staticsdo.com/a1/154/88/255/72716-49499083-8.png" rel="lightbox[117]"><img alt="" src="http://photo.staticsdo.com/a1/154/88/255/72716-49499083-8_765.jpg" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; width: 500px; height: 277px; " /></a></li>
<li><a href="http://photo.staticsdo.com/a1/90/300/476/72717-49499083-8.png" rel="lightbox[117]"><img alt="" src="http://photo.staticsdo.com/a1/90/300/476/72717-49499083-8_765.jpg" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; width: 500px; height: 278px; " /></a></li>
<li>合盘调用方法<br />
			1. 直接把NTBOOT整个目录放到某个位置,比如放到BOOT目录下.<br />
			2. 在你的菜单中直接调用NTBOOT例子:<br />
			title 启动硬盘上的WIN7PE<br />
			/BOOT/NTBOOT/NTBOOT nt6=/boot/imgs/win7pe.wim<br />
			boot<br />
			3. 注必须使用全路径,像上面的样子或带盘符的路径如(cd)/BOOT/NTBOOT/NTBOOT &#8230;<br />
			4. 为了方便你可以在使用NTBOOT之前执行一次NTBOOT设置一个参数NTBOOT,或下面的命令<br />
			/BOOT/NTBOOT/NTBOOT eof<br />
			执行之后会设置一个变量NTBOOT以后就可以直接使用%NTBOOT%来调用比如用下面的命令启动硬盘上/boot/win7/win7.vhd中的系统.<br />
			%NTBOOT% nt6=/boot/win7/win7.vhd<br />
			<span style="background-color: transparent; color: #ff6800; font-size: medium;">注:请使用2011-04以后的GRUB4DOS来调用.</span><br />
			5.有什么不解的地方或建议可以直接留言或上无忧启动论坛进行讨论.</li>
<li>PE1 可以启动CD,FD,HD上面的文件,默认情况下只会查找硬盘,指定完整路径参数时就可以使用CD,FD上的文件了.比如在光盘上使用时可以直接使用NTBOOT来启动光盘上的PE,路径直接使用()/path/file即可.</li>
<li><font color="deepskyblue">关于 [options...]<br />
			这个目前支持的参数例表如下</font><br />
			<font color="deepskyblue">cdrom=iso_file&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;指定虚拟光驱的ISO文件<br />
			harddisk=hdd_img&nbsp; &nbsp;指定虚拟磁盘的镜像文件<br />
			floppy=fdd_img&nbsp; &nbsp;&nbsp; &nbsp; 指定要加载的软盘镜像（自动加载到fd0）<br />
			boot=cdrom|harddisk|floppy 指定从什么地方启动。<br />
			其中：cdrom固定是(0xff),harddisk固定是(hd0),floppy固定是(fd0).<br />
			opt=&quot;other options&quot;&nbsp;&nbsp;其它要附加的参数。<br />
			比如：使VBOOT在启动的时候暂停。<br />
			/BOOT/NTBOOT/NTBOOT vboot=/vboot/winxp/winxp-s1.vhd opt=&quot;pause&quot;<br />
			以下例子，将会调用VBOOT的自动还原模式。<br />
			/BOOT/NTBOOT/NTBOOT vboot=/vboot/winxp/winxp-s1.vhd opt=&quot;immutable&quot;<br />
			关于VBOOT的参数，请参阅VBOOT的使用说明。</font></li>
<li id="aeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown"><font color="#00bfff">2011-09-27 新增addons=cmd参数(PE1和ISO_INST)<br />
			addons=cmd&nbsp;&nbsp;运行一个指定的命令</font></li>
</ul>
<p>【下载地址】</p>
<div>
<div>&nbsp;</div>
<div>
<div>﻿文件名称: <a href="http://filemarkets.com/file/chenall/1a48547b/">NTBOOT-2011-12-14.iso</a></div>
<div>文件大小: 2.98 MB (3,121,152 字节)</div>
<div>修改时间: 2011年12月14日，21:10:34</div>
<div>MD5: 2560D63CBEF40E578889E77E67CF4866</div>
<div>SHA1: F896C514003CBF04EE0253F1C035607BC291DF5A</div>
<div>&nbsp;</div>
</p></div>
<div>
<div>带dpms驱动的版本</div>
<div>﻿文件名称: <a href="http://filemarkets.com/file/chenall/56cc90ad/">NTBOOT_DPMS.iso</a></div>
<div>文件大小: 47.82 MB (50,143,232 字节)</div>
<div>修改时间: 2011年12月14日，21:11:40</div>
<div>MD5: 1BDD7D867E64951310E8D87A436361D5</div>
<div>SHA1: 76D4487E612D4A4A8860C1C2132233B98FB305E1</div>
<div>&nbsp;</div>
</p></div>
<div>&nbsp;</div>
</p></div>
<div>请关注我的GRUB4DOS硬盘工具箱.将会随工具箱一起更新.</div>
<pre><a href="http://chenall.net/post/g4d_hd_tools/">http://chenall.net/post/g4d_hd_tools/</a></pre>
<p>2011-12-14<br />
		1.使用新的GRUB4DOS。<br />
		2.自动检测支持的系统。（菜单1）</p>
<p>2011-10-11</p>
<p>1.重新设计模块化文件。</p>
<p>2.启动WINDOWS 7时可以正常显示启动画面</p>
</div>
<p>2011-09-27</p>
<p><font id="aeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown" size="4" style="color: rgb(51, 51, 51); font-family: Tahoma, Verdana; ">新增addons参数</font></p>
<p><font size="4" style="color: rgb(51, 51, 51); font-family: Tahoma, Verdana; ">例子:</font></p>
<p><font size="4" style="color: rgb(51, 51, 51); font-family: Tahoma, Verdana; ">用于系统安装.</font></p>
<p><span style="color:#b22222;"><font size="4" style="color: rgb(51, 51, 51); font-family: Tahoma, Verdana; ">ntboot iso_inst=firadisk cdrom=/winxp.iso addons=&quot;dpms 0&quot;</font></span></p>
<p><font size="4" style="color: rgb(51, 51, 51); font-family: Tahoma, Verdana; ">说明: 自动调用dpms命令(在NTBOOT.MOD目录下),当然了也可以是其它命令比如</font></p>
<p><font size="4" style="color: rgb(51, 51, 51); font-family: Tahoma, Verdana; ">ntboot iso_inst=firadisk cdrom=/winxp.iso addons=&quot;/boot/addons/dpms/dpms.bat 0&quot;</font></p>
<p><font size="4" style="color: rgb(51, 51, 51); font-family: Tahoma, Verdana; ">用于pe1的例子:</font></p>
<p><font size="4" style="color: rgb(51, 51, 51); font-family: Tahoma, Verdana; ">ntboot pe1=/boot/addons/tangope/tangope.is_ addons=&quot;dpms&quot;</font></p>
<p>&nbsp;</p>
<div>&nbsp;</div>
<div style="color: #ff00ff"><strong>若无特别注明，均属本站原创文章，转载请注明：</strong> 转载自:<a href="http://chenall.net/">chenall&#039;s blog</a><br /><strong>本文链接地址:</strong> <a href="http://chenall.net/post/ntboot/">[分享] Windows NT 系列通用启动盘[2011-12-14]</a></div>

<p><a href="http://feedads.g.doubleclick.net/~a/BqKM-LiPvbGhYQSW38j6JSR4VBk/0/da"><img src="http://feedads.g.doubleclick.net/~a/BqKM-LiPvbGhYQSW38j6JSR4VBk/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/BqKM-LiPvbGhYQSW38j6JSR4VBk/1/da"><img src="http://feedads.g.doubleclick.net/~a/BqKM-LiPvbGhYQSW38j6JSR4VBk/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Chenall/~4/9VUpBsDd4lg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://chenall.net/post/ntboot/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		<feedburner:origLink>http://chenall.net/post/ntboot/</feedburner:origLink></item>
		<item>
		<title>将数据输出到Excel的方法</title>
		<link>http://feedproxy.google.com/~r/Chenall/~3/H1fFRYNQ1xY/</link>
		<comments>http://chenall.net/post/datatoexcel/#comments</comments>
		<pubDate>Wed, 09 Nov 2011 06:35:20 +0000</pubDate>
		<dc:creator>chenall</dc:creator>
				<category><![CDATA[编程]]></category>
		<category><![CDATA[EXCEL]]></category>
		<category><![CDATA[VBScript]]></category>

		<guid isPermaLink="false">http://chenall.net/post/datatoexcel/</guid>
		<description><![CDATA[日常工作中经常需要把某一部份数据导出到EXCEL,通常情况都有软件提供类似方案.
但是这需要手工去打开软件然后导出,不能实现自动化.所以就编写了这个脚本方便实现自动化.
本脚本采用VBSCRIPT语言编写.可以在VB或VBS脚本中使用.
提供了两个过程调用方法rsToExcel,和sqltoexcel.
<span class="readmore"><a href="http://chenall.net/post/datatoexcel/" title="将数据输出到Excel的方法" target="_blank">&#160;【阅读全文】共2934字</a></span>]]></description>
			<content:encoded><![CDATA[<div class="PublishedByWebStory-[6]1_DE03E0F51D6547739EC738C5EEF3F18E_B0B48609324D44AC8B79BADFA3DAEFCD">
<p>日常工作中经常需要把某一部份数据导出到EXCEL,通常情况都有软件提供类似方案.</p>
<p>但是这需要手工去打开软件然后导出,不能实现自动化.所以就编写了这个脚本方便实现自动化.</p>
<p>本脚本采用VBSCRIPT语言编写.可以在VB或VBS脚本中使用.</p>
<p>提供了两个过程调用方法rsToExcel,和sqltoexcel.</p>
<p>以下例子就可以把一个文本文档(CSV格式),转为EXCEL<br />
		<font color="#FF00FF"><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">sqlToExcel</span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; DISPLAY: inline !important; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; FLOAT: none; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><span class="Apple-converted-space">&nbsp;</span></span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,255); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">&quot;TEXT;c:\test.txt&quot;</span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">,</span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,255); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">&quot;c:\test.xls&quot;</span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">,</span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">null</span></font></p>
<p>以下可以从一个SQL数据库中提取数据并输出到excel文件中<br />
		<font color="#FF00FF"><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">sqlToExcel</span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; DISPLAY: inline !important; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; FLOAT: none; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><span class="Apple-converted-space">&nbsp;</span></span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,255); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">&quot;OLEDB;Provider=SQLOLEDB;data source=SQLSERVER;Initial Catalog=DB;User ID=sa;Password=pass&quot;</span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">,</span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,255); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">&quot;c:\test.xls&quot;</span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">,</span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,255); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">&quot;select * from mytable&quot;</span></font></p>
<p>注:rstoexcel和sqltoexcel都可以生成EXCEL文件,可以看情况使用.一般情况下使用sqltoexcel就可以了,比较简单.</p>
<p>以下是使用rstoexcel的方法,会麻烦一些&nbsp;</p>
<p><font color="#FF00FF"><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: bold 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,128); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">Dim</span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; DISPLAY: inline !important; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; FLOAT: none; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><span class="Apple-converted-space">&nbsp;</span></span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">Conn</span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">,</span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; DISPLAY: inline !important; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; FLOAT: none; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><span class="Apple-converted-space">&nbsp;</span></span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">StrConn</span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">,</span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; DISPLAY: inline !important; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; FLOAT: none; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><span class="Apple-converted-space">&nbsp;</span></span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">RS</span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">,</span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; DISPLAY: inline !important; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; FLOAT: none; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><span class="Apple-converted-space">&nbsp;</span></span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">SQL</span><br style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br />
		<span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: bold 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,128); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">set</span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; DISPLAY: inline !important; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; FLOAT: none; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><span class="Apple-converted-space">&nbsp;</span></span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">Conn</span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; DISPLAY: inline !important; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; FLOAT: none; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><span class="Apple-converted-space">&nbsp;</span></span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">=</span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; DISPLAY: inline !important; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; FLOAT: none; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><span class="Apple-converted-space">&nbsp;</span></span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">CreateObject</span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; DISPLAY: inline !important; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; FLOAT: none; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">(</span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,255); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">&quot;ADODB.Connection&quot;</span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; DISPLAY: inline !important; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; FLOAT: none; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">)</span><br style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br />
		<span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: bold 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,128); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">set</span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; DISPLAY: inline !important; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; FLOAT: none; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><span class="Apple-converted-space">&nbsp;</span></span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">RS</span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; DISPLAY: inline !important; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; FLOAT: none; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><span class="Apple-converted-space">&nbsp;</span></span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">=</span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; DISPLAY: inline !important; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; FLOAT: none; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><span class="Apple-converted-space">&nbsp;</span></span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">CreateObject</span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; DISPLAY: inline !important; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; FLOAT: none; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">(</span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,255); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">&quot;ADODB.Recordset&quot;</span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; DISPLAY: inline !important; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; FLOAT: none; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">)</span><br style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br />
		<span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">StrConn</span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; DISPLAY: inline !important; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; FLOAT: none; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><span class="Apple-converted-space">&nbsp;</span></span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">=</span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; DISPLAY: inline !important; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; FLOAT: none; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><span class="Apple-converted-space">&nbsp;</span></span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,255); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">&quot;Provider=SQLOLEDB;data source=SQLSERVER;Initial Catalog=DB;User ID=sa;Password=passwd&quot;</span><br style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br />
		<span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">SQL</span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; DISPLAY: inline !important; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; FLOAT: none; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><span class="Apple-converted-space">&nbsp;</span></span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">=</span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; DISPLAY: inline !important; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; FLOAT: none; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><span class="Apple-converted-space">&nbsp;</span></span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,255); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">&quot;select * from mytable&quot;</span><br style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br />
		<span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">Conn</span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">.</span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">Open</span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; DISPLAY: inline !important; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; FLOAT: none; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><span class="Apple-converted-space">&nbsp;</span></span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">StrConn</span><br style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br />
		<span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">RS</span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">.</span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">Open</span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; DISPLAY: inline !important; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; FLOAT: none; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><span class="Apple-converted-space">&nbsp;</span></span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">SQL</span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">,</span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">conn</span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">,</span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,255); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">1</span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">,</span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,255); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">1</span><br style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br />
		<span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">rstoexcel</span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; DISPLAY: inline !important; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; FLOAT: none; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">(</span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">RS</span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">,</span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,255); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">&quot;c:\sql.xls&quot;</span><span style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(249,247,237); TEXT-INDENT: 0px; LETTER-SPACING: normal; DISPLAY: inline !important; FONT: 14px 'Courier New', Consolas, 'Lucida Console'; WHITE-SPACE: normal; ORPHANS: 2; FLOAT: none; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">)</span></font></p>
<p>
		参考资料<br />
		<a href="http://support.microsoft.com/kb/247412/zh-cn">http://support.microsoft.com/kb/247412/zh-cn</a></p>
<div style="BACKGROUND: #fdfdfd; COLOR: black"><u>VB.net语言</u>: <a href="http://fayaa.com/code/view/23869/">vbscript to Excel</a></div>
<div class="source" style="BACKGROUND-COLOR: rgb(51,51,51); FONT-FAMILY: 'Courier New', Consolas, 'Lucida Console'; COLOR: rgb(255,255,255)"><span style="COLOR: rgb(240,230,140)">Dim</span> <span style="COLOR: rgb(255,255,255)">Conn</span><span style="COLOR: rgb(255,255,255)">,</span> <span style="COLOR: rgb(255,255,255)">StrConn</span><span style="COLOR: rgb(255,255,255)">,</span> <span style="COLOR: rgb(255,255,255)">RS</span><span style="COLOR: rgb(255,255,255)">,</span> <span style="COLOR: rgb(255,255,255)">SQL</span><br />
		<span style="COLOR: rgb(240,230,140)">set</span> <span style="COLOR: rgb(255,255,255)">Conn</span> <span style="COLOR: rgb(255,255,255)">=</span> <span style="COLOR: rgb(255,255,255)">CreateObject</span>(<span style="COLOR: rgb(255,255,255)">&quot;ADODB.Connection&quot;</span>)<br />
		<span style="COLOR: rgb(240,230,140)">set</span> <span style="COLOR: rgb(255,255,255)">RS</span> <span style="COLOR: rgb(255,255,255)">=</span> <span style="COLOR: rgb(255,255,255)">CreateObject</span>(<span style="COLOR: rgb(255,255,255)">&quot;ADODB.Recordset&quot;</span>)<br />
		<span style="COLOR: rgb(255,255,255)">StrConn</span> <span style="COLOR: rgb(255,255,255)">=</span> <span style="COLOR: rgb(255,255,255)">&quot;Provider=SQLOLEDB;data source=SQLSERVER;Initial Catalog=DB;User ID=sa;Password=passwd&quot;</span><br />
		<span style="COLOR: rgb(255,255,255)">SQL</span> <span style="COLOR: rgb(255,255,255)">=</span> <span style="COLOR: rgb(255,255,255)">&quot;select * from mytable&quot;</span><br />
		<span style="COLOR: rgb(255,255,255)">Conn</span><span style="COLOR: rgb(255,255,255)">.</span><span style="COLOR: rgb(255,255,255)">Open</span> <span style="COLOR: rgb(255,255,255)">StrConn</span><br />
		<span style="COLOR: rgb(255,255,255)">RS</span><span style="COLOR: rgb(255,255,255)">.</span><span style="COLOR: rgb(255,255,255)">Open</span> <span style="COLOR: rgb(255,255,255)">SQL</span><span style="COLOR: rgb(255,255,255)">,</span><span style="COLOR: rgb(255,255,255)">conn</span><span style="COLOR: rgb(255,255,255)">,</span><span style="COLOR: rgb(255,255,255)">1</span><span style="COLOR: rgb(255,255,255)">,</span><span style="COLOR: rgb(255,255,255)">1</span><br />
		<span style="COLOR: rgb(255,255,255)">rstoexcel</span>(<span style="COLOR: rgb(255,255,255)">RS</span><span style="COLOR: rgb(255,255,255)">,</span><span style="COLOR: rgb(255,255,255)">&quot;c:\sql.xls&quot;</span>)<br />
		&#39;或者直接使用以下语句即可.<br />
		<span style="COLOR: rgb(255,255,255)">sqltoexcel</span> <span style="COLOR: rgb(255,255,255)">&quot;OLEDB;&quot;</span> <span style="COLOR: rgb(255,255,255)">&#038;</span> <span style="COLOR: rgb(255,255,255)">StrConn</span> <span style="COLOR: rgb(255,255,255)">,</span><span style="COLOR: rgb(255,255,255)">&quot;c:\sql.xls&quot;</span><span style="COLOR: rgb(255,255,255)">,</span><span style="COLOR: rgb(255,255,255)">SQL</span></div>
<div class="source" style="BACKGROUND-COLOR: rgb(51,51,51); FONT-FAMILY: 'Courier New', Consolas, 'Lucida Console'; COLOR: rgb(255,255,255)">&nbsp;</div>
<div class="source" style="BACKGROUND-COLOR: rgb(51,51,51); FONT-FAMILY: 'Courier New', Consolas, 'Lucida Console'; COLOR: rgb(255,255,255)"><span style="COLOR: rgb(135,206,235)">&#39;sqltoexcel &quot;TEXT;c:\11.txt&quot;,&quot;c:\test.xls&quot;,null</span><br />
		<span style="COLOR: rgb(135,206,235)">&#39;sqltoexcel &quot;URL;http://amupdate.nxt.ru/&quot;,&quot;c:\url.xls&quot;,null</span></p>
<p>&nbsp;</p>
<p><span style="COLOR: rgb(135,206,235)">&#39;RS记录导出到EXCEL文件 by chenall http://chenall.net</span><br />
			<span style="COLOR: rgb(135,206,235)">&#39;使用方法</span><br />
			<span style="COLOR: rgb(135,206,235)">&#39;rsToExcel Recordset,ExcelFileName</span><br />
			<span style="COLOR: rgb(135,206,235)">&#39;rsToExcel rs,&quot;c:\test.xls&quot;</span><br />
			<span style="COLOR: rgb(240,230,140)">sub</span> <span style="COLOR: rgb(255,255,255)">rsToExcel</span>(<span style="COLOR: rgb(255,255,255)">rs</span><span style="COLOR: rgb(255,255,255)">,</span><span style="COLOR: rgb(255,255,255)">file</span>)<br />
			&nbsp;&nbsp;&nbsp; <span style="COLOR: rgb(135,206,235)">&#39;on error resume next</span><br />
			&nbsp;&nbsp;&nbsp; <span style="COLOR: rgb(240,230,140)">dim</span> n<span style="COLOR: rgb(255,255,255)">,</span><span style="COLOR: rgb(255,255,255)">x</span><br />
			&nbsp;&nbsp;&nbsp; <span style="COLOR: rgb(240,230,140)">dim</span> <span style="COLOR: rgb(255,255,255)">xlApp</span><span style="COLOR: rgb(255,255,255)">,</span><span style="COLOR: rgb(255,255,255)">xlBook</span><span style="COLOR: rgb(255,255,255)">,</span><span style="COLOR: rgb(255,255,255)">xlSheet</span><br />
			&nbsp;&nbsp;&nbsp; <span style="COLOR: rgb(240,230,140)">Set</span> <span style="COLOR: rgb(255,255,255)">xlApp</span> <span style="COLOR: rgb(255,255,255)">=</span> <span style="COLOR: rgb(255,255,255)">CreateObject</span>(<span style="COLOR: rgb(255,255,255)">&quot;<a href="http://chenall.net/post/tag/excel/" class="st_tag internal_tag" rel="tag" title="标签 EXCEL 下的日志">Excel</a>.Application&quot;</span>)<span style="COLOR: rgb(135,206,235)">&#39;创建EXCEL对象</span><br />
			&nbsp;&nbsp;&nbsp; <span style="COLOR: rgb(240,230,140)">with</span> <span style="COLOR: rgb(255,255,255)">xlApp</span><span style="COLOR: rgb(255,255,255)">.</span><span style="COLOR: rgb(255,255,255)">Workbooks</span><span style="COLOR: rgb(255,255,255)">.</span><span style="COLOR: rgb(255,255,255)">Add</span><span style="COLOR: rgb(255,255,255)">().</span><span style="COLOR: rgb(255,255,255)">Worksheets</span>(<span style="COLOR: rgb(255,255,255)">1</span>)<span style="COLOR: rgb(135,206,235)">&#39;创建新的工作表对像</span><br />
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; n <span style="COLOR: rgb(255,255,255)">=</span> <span style="COLOR: rgb(255,255,255)">0</span><br />
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="COLOR: rgb(240,230,140)">for</span> <span style="COLOR: rgb(240,230,140)">each</span> <span style="COLOR: rgb(255,255,255)">x</span> <span style="COLOR: rgb(255,255,255)">in</span> <span style="COLOR: rgb(255,255,255)">rs</span><span style="COLOR: rgb(255,255,255)">.</span><span style="COLOR: rgb(255,255,255)">Fields</span><br />
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; n<span style="COLOR: rgb(255,255,255)">=</span>n<span style="COLOR: rgb(255,255,255)">+</span><span style="COLOR: rgb(255,255,255)">1</span><br />
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="COLOR: rgb(255,255,255)">.</span><span style="COLOR: rgb(255,255,255)">Cells</span>(<span style="COLOR: rgb(255,255,255)">1</span><span style="COLOR: rgb(255,255,255)">,</span>n) <span style="COLOR: rgb(255,255,255)">=</span> <span style="COLOR: rgb(255,255,255)">x</span><span style="COLOR: rgb(255,255,255)">.</span><span style="COLOR: rgb(255,255,255)">name</span><br />
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="COLOR: rgb(255,255,255)">.</span><span style="COLOR: rgb(255,255,255)">Cells</span>(<span style="COLOR: rgb(255,255,255)">1</span><span style="COLOR: rgb(255,255,255)">,</span>n<span style="COLOR: rgb(255,255,255)">).</span><span style="COLOR: rgb(255,255,255)">Font</span><span style="COLOR: rgb(255,255,255)">.</span><span style="COLOR: rgb(255,255,255)">Bold</span>&nbsp;&nbsp; <span style="COLOR: rgb(255,255,255)">=</span>&nbsp;&nbsp; <span style="COLOR: rgb(240,230,140)">True</span> <span style="COLOR: rgb(135,206,235)">&#39;加粗</span><br />
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="COLOR: rgb(255,255,255)">.</span><span style="COLOR: rgb(255,255,255)">Cells</span>(<span style="COLOR: rgb(255,255,255)">1</span><span style="COLOR: rgb(255,255,255)">,</span>n<span style="COLOR: rgb(255,255,255)">).</span><span style="COLOR: rgb(255,255,255)">HorizontalAlignment</span><span style="COLOR: rgb(255,255,255)">=</span><span style="COLOR: rgb(255,255,255)">3</span> <span style="COLOR: rgb(135,206,235)">&#39;居中</span><br />
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="COLOR: rgb(240,230,140)">next</span><br />
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="COLOR: rgb(255,255,255)">.</span><span style="COLOR: rgb(255,255,255)">Range</span>(<span style="COLOR: rgb(255,255,255)">&quot;A2&quot;</span><span style="COLOR: rgb(255,255,255)">).</span><span style="COLOR: rgb(255,255,255)">CopyFromRecordset</span> <span style="COLOR: rgb(255,255,255)">rs</span><br />
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="COLOR: rgb(255,255,255)">.</span><span style="COLOR: rgb(255,255,255)">Range</span>(<span style="COLOR: rgb(255,255,255)">&quot;A1:&quot;</span> <span style="COLOR: rgb(255,255,255)">&#038;</span> <span style="COLOR: rgb(255,255,255)">chr</span>(<span style="COLOR: rgb(255,255,255)">asc</span>(<span style="COLOR: rgb(255,255,255)">&quot;A&quot;</span>)<span style="COLOR: rgb(255,255,255)">+</span>n<span style="COLOR: rgb(255,255,255)">-</span><span style="COLOR: rgb(255,255,255)">1</span>) <span style="COLOR: rgb(255,255,255)">&#038;</span> <span style="COLOR: rgb(255,255,255)">rs</span><span style="COLOR: rgb(255,255,255)">.</span><span style="COLOR: rgb(255,255,255)">recordcount</span><span style="COLOR: rgb(255,255,255)">+</span><span style="COLOR: rgb(255,255,255)">1</span><span style="COLOR: rgb(255,255,255)">).</span><span style="COLOR: rgb(255,255,255)">Borders</span><span style="COLOR: rgb(255,255,255)">.</span><span style="COLOR: rgb(255,255,255)">LineStyle</span> <span style="COLOR: rgb(255,255,255)">=</span> <span style="COLOR: rgb(255,255,255)">1</span><span style="COLOR: rgb(135,206,235)">&#39;画表框</span><br />
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="COLOR: rgb(255,255,255)">.</span><span style="COLOR: rgb(255,255,255)">Range</span>(<span style="COLOR: rgb(255,255,255)">&quot;A1:&quot;</span> <span style="COLOR: rgb(255,255,255)">&#038;</span> <span style="COLOR: rgb(255,255,255)">chr</span>(<span style="COLOR: rgb(255,255,255)">asc</span>(<span style="COLOR: rgb(255,255,255)">&quot;A&quot;</span>)<span style="COLOR: rgb(255,255,255)">+</span>n<span style="COLOR: rgb(255,255,255)">-</span><span style="COLOR: rgb(255,255,255)">1</span>) <span style="COLOR: rgb(255,255,255)">&#038;</span> <span style="COLOR: rgb(255,255,255)">rs</span><span style="COLOR: rgb(255,255,255)">.</span><span style="COLOR: rgb(255,255,255)">recordcount</span><span style="COLOR: rgb(255,255,255)">+</span><span style="COLOR: rgb(255,255,255)">1</span><span style="COLOR: rgb(255,255,255)">).</span><span style="COLOR: rgb(255,255,255)">EntireColumn</span><span style="COLOR: rgb(255,255,255)">.</span><span style="COLOR: rgb(255,255,255)">AutoFit</span>() <span style="COLOR: rgb(135,206,235)">&#39;自动调整列宽</span><br />
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="COLOR: rgb(255,255,255)">xlApp</span><span style="COLOR: rgb(255,255,255)">.</span><span style="COLOR: rgb(255,255,255)">displayalerts</span><span style="COLOR: rgb(255,255,255)">=</span><span style="COLOR: rgb(240,230,140)">false</span><span style="COLOR: rgb(135,206,235)">&#39;不显示覆盖文件的提示</span><br />
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="COLOR: rgb(255,255,255)">.</span><span style="COLOR: rgb(255,255,255)">SaveAs</span> <span style="COLOR: rgb(255,255,255)">file</span><span style="COLOR: rgb(135,206,235)">&#39;另存为新的文件名</span><br />
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="COLOR: rgb(255,255,255)">xlApp</span><span style="COLOR: rgb(255,255,255)">.</span><span style="COLOR: rgb(255,255,255)">displayalerts</span><span style="COLOR: rgb(255,255,255)">=</span><span style="COLOR: rgb(240,230,140)">true</span><span style="COLOR: rgb(135,206,235)">&#39;恢复显示</span><br />
			&nbsp;&nbsp;&nbsp; <span style="COLOR: rgb(240,230,140)">end</span> <span style="COLOR: rgb(240,230,140)">with</span><br />
			&nbsp;&nbsp;&nbsp; <span style="COLOR: rgb(255,255,255)">xlApp</span><span style="COLOR: rgb(255,255,255)">.</span><span style="COLOR: rgb(255,255,255)">Quit</span><span style="COLOR: rgb(135,206,235)">&#39;退出excel</span><br />
			&nbsp;&nbsp;&nbsp; <span style="COLOR: rgb(240,230,140)">set</span> <span style="COLOR: rgb(255,255,255)">xlApp</span><span style="COLOR: rgb(255,255,255)">=</span><span style="COLOR: rgb(240,230,140)">nothing</span><br />
			<span style="COLOR: rgb(240,230,140)">end</span> <span style="COLOR: rgb(240,230,140)">sub</span></p>
<p><span style="COLOR: rgb(135,206,235)">&#39;任意数据源导出到EXCEL文件 by chenall http://chenall.net</span><br />
			<span style="COLOR: rgb(135,206,235)">&#39;使用方法,sql参数可以为null</span><br />
			<span style="COLOR: rgb(135,206,235)">&#39;sqlToExcel conn,ExcelFileName,sql</span><br />
			<span style="COLOR: rgb(135,206,235)">&#39;sqlToExcel conn,&quot;c:\test.xls&quot;,sql</span><br />
			<span style="COLOR: rgb(240,230,140)">sub</span> <span style="COLOR: rgb(255,255,255)">sqlToExcel</span>(<span style="COLOR: rgb(255,255,255)">conn</span><span style="COLOR: rgb(255,255,255)">,</span><span style="COLOR: rgb(255,255,255)">file</span><span style="COLOR: rgb(255,255,255)">,</span><span style="COLOR: rgb(255,255,255)">sql</span>)<br />
			<span style="COLOR: rgb(135,206,235)">&#39;&nbsp;&nbsp;&nbsp; on error resume next</span><br />
			&nbsp;&nbsp;&nbsp; <span style="COLOR: rgb(240,230,140)">dim</span> <span style="COLOR: rgb(255,255,255)">xlApp</span><span style="COLOR: rgb(255,255,255)">,</span><span style="COLOR: rgb(255,255,255)">xlBook</span><span style="COLOR: rgb(255,255,255)">,</span><span style="COLOR: rgb(255,255,255)">xlSheet</span><span style="COLOR: rgb(255,255,255)">,</span><span style="COLOR: rgb(255,255,255)">QryTable</span><br />
			&nbsp;&nbsp;&nbsp; <span style="COLOR: rgb(240,230,140)">Set</span> <span style="COLOR: rgb(255,255,255)">xlApp</span> <span style="COLOR: rgb(255,255,255)">=</span> <span style="COLOR: rgb(255,255,255)">CreateObject</span>(<span style="COLOR: rgb(255,255,255)">&quot;Excel.Application&quot;</span>)<span style="COLOR: rgb(135,206,235)">&#39;创建EXCEL对象</span><br />
			&nbsp;&nbsp;&nbsp; <span style="COLOR: rgb(240,230,140)">with</span> <span style="COLOR: rgb(255,255,255)">xlApp</span><span style="COLOR: rgb(255,255,255)">.</span><span style="COLOR: rgb(255,255,255)">Workbooks</span><span style="COLOR: rgb(255,255,255)">.</span><span style="COLOR: rgb(255,255,255)">Add</span><span style="COLOR: rgb(255,255,255)">().</span><span style="COLOR: rgb(255,255,255)">Worksheets</span>(<span style="COLOR: rgb(255,255,255)">1</span>)<span style="COLOR: rgb(135,206,235)">&#39;创建新的工作表对像</span><br />
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="COLOR: rgb(240,230,140)">if</span> <span style="COLOR: rgb(255,255,255)">isnull</span>(<span style="COLOR: rgb(255,255,255)">sql</span>) <span style="COLOR: rgb(240,230,140)">then</span><br />
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="COLOR: rgb(240,230,140)">set</span> <span style="COLOR: rgb(255,255,255)">QryTable</span> <span style="COLOR: rgb(255,255,255)">=</span> <span style="COLOR: rgb(255,255,255)">.</span><span style="COLOR: rgb(255,255,255)">QueryTables</span><span style="COLOR: rgb(255,255,255)">.</span><span style="COLOR: rgb(255,255,255)">add</span>(<span style="COLOR: rgb(255,255,255)">conn</span><span style="COLOR: rgb(255,255,255)">,.</span><span style="COLOR: rgb(255,255,255)">Range</span>(<span style="COLOR: rgb(255,255,255)">&quot;A1&quot;</span>)) <span style="COLOR: rgb(135,206,235)">&#39;导入数据</span><br />
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="COLOR: rgb(240,230,140)">else</span><br />
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="COLOR: rgb(240,230,140)">set</span> <span style="COLOR: rgb(255,255,255)">QryTable</span> <span style="COLOR: rgb(255,255,255)">=</span> <span style="COLOR: rgb(255,255,255)">.</span><span style="COLOR: rgb(255,255,255)">QueryTables</span><span style="COLOR: rgb(255,255,255)">.</span><span style="COLOR: rgb(255,255,255)">add</span>(<span style="COLOR: rgb(255,255,255)">conn</span><span style="COLOR: rgb(255,255,255)">,.</span><span style="COLOR: rgb(255,255,255)">Range</span>(<span style="COLOR: rgb(255,255,255)">&quot;A1&quot;</span><span style="COLOR: rgb(255,255,255)">),</span><span style="COLOR: rgb(255,255,255)">sql</span>) <span style="COLOR: rgb(135,206,235)">&#39;导入数据</span><br />
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="COLOR: rgb(240,230,140)">end</span> <span style="COLOR: rgb(240,230,140)">if</span><br />
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="COLOR: rgb(255,255,255)">QryTable</span><span style="COLOR: rgb(255,255,255)">.</span><span style="COLOR: rgb(255,255,255)">Refresh</span> <span style="COLOR: rgb(240,230,140)">false</span><br />
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="COLOR: rgb(255,255,255)">xlApp</span><span style="COLOR: rgb(255,255,255)">.</span><span style="COLOR: rgb(255,255,255)">displayalerts</span><span style="COLOR: rgb(255,255,255)">=</span><span style="COLOR: rgb(240,230,140)">false</span><span style="COLOR: rgb(135,206,235)">&#39;不显示覆盖文件的提示</span><br />
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="COLOR: rgb(255,255,255)">.</span><span style="COLOR: rgb(255,255,255)">SaveAs</span> <span style="COLOR: rgb(255,255,255)">file</span><span style="COLOR: rgb(135,206,235)">&#39;另存为新的文件名</span><br />
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="COLOR: rgb(255,255,255)">xlApp</span><span style="COLOR: rgb(255,255,255)">.</span><span style="COLOR: rgb(255,255,255)">displayalerts</span><span style="COLOR: rgb(255,255,255)">=</span><span style="COLOR: rgb(240,230,140)">true</span><span style="COLOR: rgb(135,206,235)">&#39;恢复显示</span><br />
			&nbsp;&nbsp;&nbsp; <span style="COLOR: rgb(240,230,140)">end</span> <span style="COLOR: rgb(240,230,140)">with</span><br />
			&nbsp;&nbsp;&nbsp; <span style="COLOR: rgb(255,255,255)">xlApp</span><span style="COLOR: rgb(255,255,255)">.</span><span style="COLOR: rgb(255,255,255)">Quit</span><span style="COLOR: rgb(135,206,235)">&#39;退出excel</span><br />
			&nbsp;&nbsp;&nbsp; <span style="COLOR: rgb(240,230,140)">set</span> <span style="COLOR: rgb(255,255,255)">xlApp</span><span style="COLOR: rgb(255,255,255)">=</span><span style="COLOR: rgb(240,230,140)">nothing</span><br />
			<span style="COLOR: rgb(240,230,140)">end</span> <span style="COLOR: rgb(240,230,140)">sub</span></p>
</p></div>
</div>
<p><span id="more-787"></span>
<div style="color: #ff00ff"><strong>若无特别注明，均属本站原创文章，转载请注明：</strong> 转载自:<a href="http://chenall.net/">chenall&#039;s blog</a><br /><strong>本文链接地址:</strong> <a href="http://chenall.net/post/datatoexcel/">将数据输出到Excel的方法</a></div>

<p><a href="http://feedads.g.doubleclick.net/~a/aScgUIZhR6Kkp2ESx9LLNjjB9GM/0/da"><img src="http://feedads.g.doubleclick.net/~a/aScgUIZhR6Kkp2ESx9LLNjjB9GM/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/aScgUIZhR6Kkp2ESx9LLNjjB9GM/1/da"><img src="http://feedads.g.doubleclick.net/~a/aScgUIZhR6Kkp2ESx9LLNjjB9GM/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Chenall/~4/H1fFRYNQ1xY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://chenall.net/post/datatoexcel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://chenall.net/post/datatoexcel/</feedburner:origLink></item>
		<item>
		<title>可以在GRUB4DOS下调用BIOS中断的外部命令</title>
		<link>http://feedproxy.google.com/~r/Chenall/~3/t1auFpPYQlc/</link>
		<comments>http://chenall.net/post/grub4dos_biosint/#comments</comments>
		<pubDate>Mon, 17 Oct 2011 15:36:28 +0000</pubDate>
		<dc:creator>chenall</dc:creator>
				<category><![CDATA[个人日记]]></category>

		<guid isPermaLink="false">http://chenall.net/?p=785</guid>
		<description><![CDATA[本程序可以在grub4dos中直接调用BIOS中断和读写指定端口，从而获取一些功能和需要的数据。
可以方便开发人员临时调试某个功能时使用。
当然你对中断资料比较熟悉的话，就可以利用GRUB4DOS配合本程序作出非常酷的效果（比如移动的文字）
&#160;
<span class="readmore"><a href="http://chenall.net/post/grub4dos_biosint/" title="可以在GRUB4DOS下调用BIOS中断的外部命令" target="_blank">&#160;【阅读全文】共1397字</a></span>]]></description>
			<content:encoded><![CDATA[<p>本程序可以在<span class='wp_keywordlink'><a href="http://grub4dos.chenall.com" title="下载最新版Grub4dos" target="_blank">grub4dos</a></span>中直接调用BIOS中断和读写指定端口，从而获取一些功能和需要的数据。</p>
<p>可以方便开发人员临时调试某个功能时使用。</p>
<p>当然你对中断资料比较熟悉的话，就可以利用GRUB4DOS配合本程序作出非常酷的效果（比如移动的文字）</p>
<p>&nbsp;</p>
<p>使用方法，直接下载程序在GRUB4DOS中执行</p>
<p>参数</p>
<ul>
<li>写数据到指定端口<br />
		<span style="direction: ltr; "><span style="color:#ff0000;">bios</span> <span style="color:#b22222;">outb</span>/<span style="color:#b22222;">outw/outl </span>PORT VALUE</span></li>
<li><span style="direction: ltr; ">从指定端口读数据<br />
		<span style="direction: ltr; "><span style="color:#ff0000;">bios</span><span style="color:#b22222;"> inb</span>/<span style="color:#b22222;">inw</span>/<span style="color:#b22222;">inl&nbsp;</span></span></span></li>
<li><span style="direction: ltr; "><span style="direction: ltr; ">中断</span></span><span style="direction: ltr; ">调用<br />
		<span style="direction: ltr; "><span style="color:#ff0000;">bios</span><span style="color:#b22222;"> int</span>=INT <span style="color:#b22222;">eax</span>=EAX <span style="color:#b22222;">ebx</span>=EBX [...]</span></span></p>
<p>&nbsp;</p>
<p><span style="direction: ltr; "><span style="direction: ltr; ">可使用的所以参数在下面的列表中</span></span></p>
<div><span style="direction: ltr; "><span style="direction: ltr; "><span style="direction: ltr; "><span style="direction: ltr; ">unsigned long edi; // as input and output</span></span></span></span></div>
<div><span style="direction: ltr; "><span style="direction: ltr; "><span style="direction: ltr; "><span style="direction: ltr; ">unsigned long esi; // as input and output</span></span></span></span></div>
<div><span style="direction: ltr; "><span style="direction: ltr; "><span style="direction: ltr; "><span style="direction: ltr; ">unsigned long ebp; // as input and output</span></span></span></span></div>
<div><span style="direction: ltr; "><span style="direction: ltr; "><span style="direction: ltr; "><span style="direction: ltr; ">unsigned long esp; // stack pointer, as input</span></span></span></span></div>
<div><span style="direction: ltr; "><span style="direction: ltr; "><span style="direction: ltr; "><span style="direction: ltr; ">unsigned long ebx; // as input and output</span></span></span></span></div>
<div><span style="direction: ltr; "><span style="direction: ltr; "><span style="direction: ltr; "><span style="direction: ltr; ">unsigned long edx; // as input and output</span></span></span></span></div>
<div><span style="direction: ltr; "><span style="direction: ltr; "><span style="direction: ltr; "><span style="direction: ltr; ">unsigned long ecx; // as input and output</span></span></span></span></div>
<div><span style="direction: ltr; "><span style="direction: ltr; "><span style="direction: ltr; "><span style="direction: ltr; ">unsigned long eax;// as input and output</span></span></span></span></div>
<div><span style="direction: ltr; "><span style="direction: ltr; "><span style="direction: ltr; "><span style="direction: ltr; ">unsigned long gs; // as input and output</span></span></span></span></div>
<div><span style="direction: ltr; "><span style="direction: ltr; "><span style="direction: ltr; "><span style="direction: ltr; ">unsigned long fs; // as input and output</span></span></span></span></div>
<div><span style="direction: ltr; "><span style="direction: ltr; "><span style="direction: ltr; "><span style="direction: ltr; ">unsigned long es; // as input and output</span></span></span></span></div>
<div><span style="direction: ltr; "><span style="direction: ltr; "><span style="direction: ltr; "><span style="direction: ltr; ">unsigned long ds; // as input and output</span></span></span></span></div>
<div><span style="direction: ltr; "><span style="direction: ltr; "><span style="direction: ltr; "><span style="direction: ltr; ">unsigned long ss; // stack segment, as input</span></span></span></span></div>
<div><span style="direction: ltr; "><span style="direction: ltr; "><span style="direction: ltr; "><span style="direction: ltr; ">unsigned long eip; // instruction pointer, as input,&nbsp;</span></span></span></span></div>
<div><span style="direction: ltr; "><span style="direction: ltr; "><span style="direction: ltr; "><span style="direction: ltr; ">unsigned long cs; // code segment, as input</span></span></span></span></div>
<div><span style="direction: ltr; "><span style="direction: ltr; "><span style="direction: ltr; "><span style="direction: ltr; ">unsigned long eflags; // as input and output</span></span></span></span></div>
</li>
</ul>
<p>效果图在这里</p>
<ol>
<li>
<h2>直接读写端口演示，分别使用<span style="color:#b22222;">outl</span>和<span style="color:#b22222;">inl</span><br />
			<span style="direction: ltr; ">说明：chkpci就是主要使用<span style="color:#b22222;">outl</span>和<span style="color:#b22222;">inl</span>获取PCI信息的（具体的在本站文章上面的搜索中输入CHKPCI查看更多介绍）<br />
			<span style="direction: ltr; ">结果自己看，后面使用bios调用得到的是第一条PCI的记录。。<br />
			<a href="http://photo.staticsdo.com/a1/346/135/428/75735-49499083-8.png" style="direction: ltr; " rel="lightbox[785]"><img alt="" src="http://photo.staticsdo.com/a1/346/135/428/75735-49499083-8.png" style="width: 469px; height: 300px; " /></a></span></span></h2>
</li>
<li>
<h2>调用BIOS中断演示<br />
			这是未执行前的界面<br />
			<a href="http://photo.staticsdo.com/a1/346/11/429/75736-49499083-8.png" rel="lightbox[785]"><img alt="" src="http://photo.staticsdo.com/a1/346/11/429/75736-49499083-8.png" style="width: 500px; height: 282px; " /></a></h2>
<p>&nbsp;</p>
<p>这是调用了INT 10后的界面，这里稍微介绍一下这个语句的作用<br />
			调用BIOS的int10中断第6号功能。AX=0X0601 即AH=06H,AL=01<br />
			CX=0x050d 即CH=5,CL=0xD(13)<br />
			DX=0X0E20 CH=0xe(14),cl=0&#215;20(32)<br />
			意思就是把屏幕从第5行第13个字符开始到第14行第32个字符结尾的柜形上移一行。<br />
			<span style="color: rgb(0, 0, 255); background-color: rgb(119, 152, 163); font-family: Verdana, 宋体, sans-serif; line-height: 18px; text-align: left; direction: ltr; ">功能号：06H和07H</span></p>
<p>&nbsp;</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 18px; color: rgb(70, 70, 70); font-family: Verdana, 宋体, sans-serif; text-align: left; background-color: rgb(119, 152, 163); "><font color="#0000FF" id="" style="word-wrap: normal; word-break: normal; ">功能：初始化屏幕或滚屏<br />
			入口参数：AH＝06H&mdash;向上滚屏，07H&mdash;向下滚屏<br />
			&nbsp;<wbr />&nbsp;<wbr />&nbsp;<wbr />&nbsp;<wbr />&nbsp;<wbr />&nbsp;<wbr />&nbsp;<wbr />&nbsp;<wbr />&nbsp;<wbr />&nbsp;AL＝滚动行数(0&mdash;清窗口)<br />
			&nbsp;<wbr />&nbsp;<wbr />&nbsp;<wbr />&nbsp;<wbr />&nbsp;<wbr />&nbsp;<wbr />&nbsp;<wbr />&nbsp;<wbr />&nbsp;<wbr />&nbsp;BH＝空白区域的缺省属性<br />
			&nbsp;<wbr />&nbsp;<wbr />&nbsp;<wbr />&nbsp;<wbr />&nbsp;<wbr />&nbsp;<wbr />&nbsp;<wbr />&nbsp;<wbr />&nbsp;<wbr />&nbsp;(CH、CL)＝窗口的左上角位置(Y坐标，X坐标)<br />
			&nbsp;<wbr />&nbsp;<wbr />&nbsp;<wbr />&nbsp;<wbr />&nbsp;<wbr />&nbsp;<wbr />&nbsp;<wbr />&nbsp;<wbr />&nbsp;<wbr />&nbsp;(DH、DL)＝窗口的右下角位置(Y坐标，X坐标)<br />
			出口参数： 无</font></p>
<p><!--EndFragment--><a href="http://photo.staticsdo.com/a1/166/262/26/75737-49499083-8.png" rel="lightbox[785]"><img alt="" src="http://photo.staticsdo.com/a1/166/262/26/75737-49499083-8.png" style="width: 500px; height: 222px; " /></a></p>
</li>
</ol>
<p><span style="direction: ltr; ">这个程序只是为了方便测试而编写,使用者需自己注意。</span></p>
<p>下载地址（带源码）：</p>
<p><a href="http://code.google.com/p/grubutils/downloads/list">http://code.google.com/p/grubutils/downloads/list</a></p>
<p>&nbsp;</p>
<div style="color: #ff00ff"><strong>若无特别注明，均属本站原创文章，转载请注明：</strong> 转载自:<a href="http://chenall.net/">chenall&#039;s blog</a><br /><strong>本文链接地址:</strong> <a href="http://chenall.net/post/grub4dos_biosint/">可以在GRUB4DOS下调用BIOS中断的外部命令</a></div>

<p><a href="http://feedads.g.doubleclick.net/~a/UcMeuU2FYggapAJYbrFBl_C-FhQ/0/da"><img src="http://feedads.g.doubleclick.net/~a/UcMeuU2FYggapAJYbrFBl_C-FhQ/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/UcMeuU2FYggapAJYbrFBl_C-FhQ/1/da"><img src="http://feedads.g.doubleclick.net/~a/UcMeuU2FYggapAJYbrFBl_C-FhQ/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Chenall/~4/t1auFpPYQlc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://chenall.net/post/grub4dos_biosint/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://chenall.net/post/grub4dos_biosint/</feedburner:origLink></item>
		<item>
		<title>[分享] 直接在GRUB4DOS环境中修改系统时间</title>
		<link>http://feedproxy.google.com/~r/Chenall/~3/2LMra3lsfWI/</link>
		<comments>http://chenall.net/post/grub4dos_date_bat/#comments</comments>
		<pubDate>Sat, 08 Oct 2011 09:12:07 +0000</pubDate>
		<dc:creator>chenall</dc:creator>
				<category><![CDATA[原创分享]]></category>
		<category><![CDATA[编程]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[GRUB4DOS]]></category>
		<category><![CDATA[time]]></category>
		<category><![CDATA[批处理]]></category>

		<guid isPermaLink="false">http://chenall.net/?p=782</guid>
		<description><![CDATA[修改系统日期有很多种方法，比如直接进入BIOS修改，或者进入系统后修改。
如果我想每次开机都改成一个固定的时间，进入系统后自动更新为正确的时间（一般用于过期软件破解）
现在可以直接使用grub4dos来实现自动修改了。
本批处理属于GRUB4DOS高级编程，直接调用BIOS中断来实现修改日期的目的。
<span class="readmore"><a href="http://chenall.net/post/grub4dos_date_bat/" title="[分享] 直接在GRUB4DOS环境中修改系统时间" target="_blank">&#160;【阅读全文】共3525字</a></span>]]></description>
			<content:encoded><![CDATA[<p>修改系统日期有很多种方法，比如直接进入BIOS修改，或者进入系统后修改。</p>
<p>如果我想每次开机都改成一个固定的时间，进入系统后自动更新为正确的时间（一般用于过期软件破解）</p>
<p>现在可以直接使用<span class='wp_keywordlink'><a href="http://grub4dos.chenall.com" title="下载最新版Grub4dos" target="_blank">grub4dos</a></span>来实现自动修改了。</p>
<p>本批处理属于GRUB4DOS高级编程，直接调用BIOS中断来实现修改日期的目的。</p>
<p>BIOS中断调用的实现例子。</p>
<p>用法:</p>
<p>1.把批处理直接保存为DATE然后使用以下命令就可以了或直接使用C语言编译的版本</p>
<p>显示当前日期</p>
<p><a href="http://chenall.net/post/tag/date/" class="st_tag internal_tag" rel="tag" title="标签 date 下的日志">date</a></p>
<p>修改日期</p>
<p>date 2011-01-01</p>
<p>附使用效果的图片</p>
<p><a href="http://photo.staticsdo.com/a1/294/120/282/73971-49499083-8.png" rel="lightbox[782]"><img alt="" src="http://photo.staticsdo.com/a1/294/120/282/73971-49499083-8.png" style="width: 467px; height: 130px; " /></a></p>
<p>&nbsp;</p>
<p>相关资料</p>
<p>&nbsp;</p>
<div>时钟服务(Clock Service&mdash;&mdash;INT 1AH)&nbsp;</div>
<div>00H &mdash;读取时钟&ldquo;滴答&rdquo;计数06H &mdash;设置闹钟</div>
<div>01H &mdash;设置时钟&ldquo;滴答&rdquo;计数07H &mdash;闹钟复位</div>
<div>02H &mdash;读取时间0AH &mdash;读取天数计数</div>
<div>03H &mdash;设置时间0BH &mdash;设置天数计数</div>
<div>04H &mdash;读取日期 80H &mdash;设置声音源信息&nbsp;</div>
<div>05H &mdash;设置日期</div>
<div>(1)、功能00H</div>
<div>功能描述：读取时钟&ldquo;滴答&rdquo;计数</div>
<div>入口参数：AH＝00H</div>
<div>出口参数：AL＝00H&mdash;&mdash;未过午夜，否则，表示已过午夜</div>
<div>CX:DX＝时钟&ldquo;滴答&rdquo;计数</div>
<div>(2)、功能01H</div>
<div>功能描述：设置时钟&ldquo;滴答&rdquo;计数</div>
<div>入口参数：AH＝01H</div>
<div>CX:DX＝时钟&ldquo;滴答&rdquo;计数</div>
<div>出口参数：无</div>
<div>(3)、功能02H</div>
<div>功能描述：读取时间</div>
<div>入口参数：AH＝02H</div>
<div>出口参数：CH＝BCD码格式的小时</div>
<div>CL＝BCD码格式的分钟</div>
<div>DH＝BCD码格式的秒</div>
<div>DL＝00H&mdash;&mdash;标准时间，否则，夏令时</div>
<div>CF＝0&mdash;&mdash;时钟在走，否则，时钟停止</div>
<div>(4)、功能03H</div>
<div>功能描述：设置时间</div>
<div>入口参数：AH＝03H</div>
<div>CH＝BCD码格式的小时</div>
<div>CL＝BCD码格式的分钟</div>
<div>DH＝BCD码格式的秒</div>
<div>DL＝00H&mdash;&mdash;标准时间，否则，夏令时</div>
<div>出口参数：无</div>
<div>(5)、功能04H</div>
<div>功能描述：读取日期</div>
<div>入口参数：AH＝04H</div>
<div>出口参数：CH＝BCD码格式的世纪</div>
<div>CL＝BCD码格式的年</div>
<div>DH＝BCD码格式的月</div>
<div>DL＝BCD码格式的日</div>
<div>CF＝0&mdash;&mdash;时钟在走，否则，时钟停止</div>
<div>(6)、功能05H</div>
<div>功能描述：设置日期</div>
<div>入口参数：AH＝05H</div>
<div>CH＝BCD码格式的世纪</div>
<div>CL＝BCD码格式的年</div>
<div>DH＝BCD码格式的月</div>
<div>DL＝BCD码格式的日</div>
<div>出口参数：无</div>
<div>(7)、功能06H</div>
<div>功能描述：设置闹钟</div>
<div>入口参数：AH＝06H</div>
<div>CH＝BCD码格式的小时</div>
<div>CL＝BCD码格式的分钟</div>
<div>DH＝BCD码格式的秒</div>
<div>出口参数：CF＝０&mdash;&mdash;操作成功，否则，闹钟已设置或时钟已停止</div>
<div>(8)、功能07H</div>
<div>功能描述：闹钟复位</div>
<div>入口参数：AH＝07H</div>
<div>出口参数：无</div>
<div>(9)、功能0AH</div>
<div>功能描述：读取天数计数，仅在PS/2有效，在此从略</div>
<div>(10)、功能0BH</div>
<div>功能描述：设置天数计数，仅在PS/2有效，在此从略</div>
<div>(11)、功能80H</div>
<div>功能描述：设置声音源信息</div>
<div>入口参数：AH＝80H</div>
<div>AL＝声音源</div>
<div>＝00H&mdash;&mdash;8253可编程计时器，通道2</div>
<div>＝01H&mdash;&mdash;盒式磁带输入</div>
<div>＝02H&mdash;&mdash;I/O通道上的&quot;Audio In&quot;</div>
<div>＝03H&mdash;&mdash;声音产生芯片</div>
<div>出口参数：无</div>
<div>&nbsp;</div>
<div>最终实现的代码如下。</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>C语言版的代码在这里</div>
<div><a href="http://code.google.com/p/grubutils/source/browse/trunk/src/date.c">http://code.google.com/p/grubutils/source/browse/trunk/src/date.c</a></div>
<div>&nbsp;</div>
<div>
<div>附件是批处理版的。</div>
<div>复制源码请点击这里</div>
<div>&nbsp;</div>
<div><a href="http://fayaa.com/code/view/23025/raw/">http://fayaa.com/code/view/23025/raw/</a></div>
</div>
<p>&nbsp;</p>
<p><u style="color: rgb(0, 0, 0); background-color: rgb(253, 253, 253); ">Batchfile语言</u><span style="color: rgb(0, 0, 0); background-color: rgb(253, 253, 253); ">: </span><a href="http://fayaa.com/code/view/23025/" style="background-color: rgb(253, 253, 253); ">GRUB4DOS 批处理，修改系统日期</a></p>
<div class="source" id="" style="font-family: 'Courier New', Consolas, 'Lucida Console'; color: rgb(255, 255, 255); background-color: rgb(51, 51, 51); ">!BAT<br />
	<span style="color: rgb(135, 206, 235); ">::datefunc for <a href="http://chenall.net/post/tag/grub4dos/" class="st_tag internal_tag" rel="tag" title="标签 GRUB4DOS 下的日志">grub4dos</a> by chenall 2011-10-08</span><br />
	<span style="color: rgb(240, 230, 140); ">setlocal</span><br />
	debug <span style="color: rgb(240, 230, 140); ">off</span><br />
	<span style="color: rgb(240, 230, 140); ">set</span> <span style="color: rgb(152, 251, 152); ">edi</span><span style="color: rgb(255, 255, 255); ">=</span><span style="color: rgb(255, 255, 255); ">0</span>x<span style="color: rgb(255, 255, 255); ">60000</span><br />
	<span style="color: rgb(240, 230, 140); ">set</span> <span style="color: rgb(152, 251, 152); ">esi</span><span style="color: rgb(255, 255, 255); ">=</span><span style="color: rgb(255, 255, 255); ">0</span>x<span style="color: rgb(255, 255, 255); ">60004</span><br />
	<span style="color: rgb(240, 230, 140); ">set</span> <span style="color: rgb(152, 251, 152); ">ebp</span><span style="color: rgb(255, 255, 255); ">=</span><span style="color: rgb(255, 255, 255); ">0</span>x<span style="color: rgb(255, 255, 255); ">60008</span><br />
	<span style="color: rgb(240, 230, 140); ">set</span> <span style="color: rgb(152, 251, 152); ">esp</span><span style="color: rgb(255, 255, 255); ">=</span><span style="color: rgb(255, 255, 255); ">0</span>x<span style="color: rgb(255, 255, 255); ">6000</span>C<br />
	<span style="color: rgb(240, 230, 140); ">set</span> <span style="color: rgb(152, 251, 152); ">ebx</span><span style="color: rgb(255, 255, 255); ">=</span><span style="color: rgb(255, 255, 255); ">0</span>x<span style="color: rgb(255, 255, 255); ">60010</span><br />
	<span style="color: rgb(240, 230, 140); ">set</span> <span style="color: rgb(152, 251, 152); ">bx</span><span style="color: rgb(255, 255, 255); ">=</span><span style="color: rgb(255, 255, 255); ">0</span>x<span style="color: rgb(255, 255, 255); ">60010</span><br />
	<span style="color: rgb(240, 230, 140); ">set</span> <span style="color: rgb(152, 251, 152); ">edx</span><span style="color: rgb(255, 255, 255); ">=</span><span style="color: rgb(255, 255, 255); ">0</span>x<span style="color: rgb(255, 255, 255); ">60014</span><br />
	<span style="color: rgb(240, 230, 140); ">set</span> <span style="color: rgb(152, 251, 152); ">dx</span><span style="color: rgb(255, 255, 255); ">=</span><span style="color: rgb(255, 255, 255); ">0</span>x<span style="color: rgb(255, 255, 255); ">60014</span><br />
	<span style="color: rgb(240, 230, 140); ">set</span> <span style="color: rgb(152, 251, 152); ">ecx</span><span style="color: rgb(255, 255, 255); ">=</span><span style="color: rgb(255, 255, 255); ">0</span>x<span style="color: rgb(255, 255, 255); ">60018</span><br />
	<span style="color: rgb(240, 230, 140); ">set</span> <span style="color: rgb(152, 251, 152); ">cx</span><span style="color: rgb(255, 255, 255); ">=</span><span style="color: rgb(255, 255, 255); ">0</span>x<span style="color: rgb(255, 255, 255); ">60018</span><br />
	<span style="color: rgb(240, 230, 140); ">set</span> <span style="color: rgb(152, 251, 152); ">eax</span><span style="color: rgb(255, 255, 255); ">=</span><span style="color: rgb(255, 255, 255); ">0</span>x<span style="color: rgb(255, 255, 255); ">6001</span>C<br />
	<span style="color: rgb(240, 230, 140); ">set</span> <span style="color: rgb(152, 251, 152); ">ax</span><span style="color: rgb(255, 255, 255); ">=</span><span style="color: rgb(255, 255, 255); ">0</span>x<span style="color: rgb(255, 255, 255); ">6001</span>C<br />
	<span style="color: rgb(240, 230, 140); ">set</span> <span style="color: rgb(152, 251, 152); ">gs</span><span style="color: rgb(255, 255, 255); ">=</span><span style="color: rgb(255, 255, 255); ">0</span>x<span style="color: rgb(255, 255, 255); ">60020</span><br />
	<span style="color: rgb(240, 230, 140); ">set</span> <span style="color: rgb(152, 251, 152); ">fs</span><span style="color: rgb(255, 255, 255); ">=</span><span style="color: rgb(255, 255, 255); ">0</span>x<span style="color: rgb(255, 255, 255); ">60024</span><br />
	<span style="color: rgb(240, 230, 140); ">set</span> <span style="color: rgb(152, 251, 152); ">es</span><span style="color: rgb(255, 255, 255); ">=</span><span style="color: rgb(255, 255, 255); ">0</span>x<span style="color: rgb(255, 255, 255); ">60028</span><br />
	<span style="color: rgb(240, 230, 140); ">set</span> <span style="color: rgb(152, 251, 152); ">ds</span><span style="color: rgb(255, 255, 255); ">=</span><span style="color: rgb(255, 255, 255); ">0</span>x<span style="color: rgb(255, 255, 255); ">6002</span>c<br />
	<span style="color: rgb(240, 230, 140); ">set</span> ss<span style="color: rgb(255, 255, 255); ">=</span><span style="color: rgb(255, 255, 255); ">0</span>x<span style="color: rgb(255, 255, 255); ">60030</span><br />
	<span style="color: rgb(240, 230, 140); ">set</span> <span style="color: rgb(152, 251, 152); ">eip</span><span style="color: rgb(255, 255, 255); ">=</span><span style="color: rgb(255, 255, 255); ">0</span>x<span style="color: rgb(255, 255, 255); ">60034</span><br />
	<span style="color: rgb(240, 230, 140); ">set</span> <span style="color: rgb(152, 251, 152); ">cs</span><span style="color: rgb(255, 255, 255); ">=</span><span style="color: rgb(255, 255, 255); ">0</span>x<span style="color: rgb(255, 255, 255); ">60038</span><br />
	<span style="color: rgb(240, 230, 140); ">set</span> <span style="color: rgb(152, 251, 152); ">eflags</span><span style="color: rgb(255, 255, 255); ">=</span><span style="color: rgb(255, 255, 255); ">0</span>x<span style="color: rgb(255, 255, 255); ">60003</span>c<br />
	<span style="color: rgb(135, 206, 235); ">::时钟服务(Clock Service&mdash;&mdash;INT 1AH) </span><br />
	<span style="color: rgb(135, 206, 235); ">::04H &mdash;读取日期</span><br />
	<span style="color: rgb(240, 230, 140); ">call</span> <span style="color: rgb(255, 255, 255); ">:BIOS_INT</span> <span style="color: rgb(255, 255, 255); ">1</span>A ax<span style="color: rgb(255, 255, 255); ">=</span><span style="color: rgb(255, 255, 255); ">0</span>x<span style="color: rgb(255, 255, 255); ">400</span><br />
	<span style="color: rgb(240, 230, 140); ">set</span> <span style="color: rgb(152, 251, 152); ">date</span><span style="color: rgb(255, 255, 255); ">=</span>%*<br />
	<span style="color: rgb(240, 230, 140); ">if</span> <span style="color: rgb(240, 230, 140); ">exist</span> date &#038;&#038; <span style="color: rgb(240, 230, 140); ">goto</span> <span style="color: rgb(255, 255, 255); ">:SET_DATE</span><br />
	<span style="color: rgb(240, 230, 140); ">call</span> Fn.<span style="color: rgb(255, 255, 255); ">0</span> <span style="color: rgb(255, 255, 255); ">0</span> <span style="color: rgb(255, 255, 255); ">&quot;%%04X%%04X&quot;</span> *<span style="color: rgb(152, 251, 152); ">%cx%</span> *<span style="color: rgb(152, 251, 152); ">%dx%</span> | <span style="color: rgb(255, 255, 255); ">set</span> date<span style="color: rgb(255, 255, 255); ">=</span><br />
	<span style="color: rgb(240, 230, 140); ">echo</span> -n The current date is: <span style="color: rgb(152, 251, 152); ">%date:~0</span><span style="color: rgb(255, 255, 255); ">,</span><span style="color: rgb(255, 255, 255); ">4</span>%-<span style="color: rgb(152, 251, 152); ">%date:~4</span><span style="color: rgb(255, 255, 255); ">,</span><span style="color: rgb(255, 255, 255); ">2</span>%-<span style="color: rgb(152, 251, 152); ">%date:~6%</span><br />
	<span style="color: rgb(240, 230, 140); ">set</span> <span style="color: rgb(255, 255, 255); ">/p</span> date<span style="color: rgb(255, 255, 255); ">=</span>Enter the new date: (yyyy-mm-dd)</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><span style="color: rgb(255, 255, 255); ">:SET_DATE</span> 调用BIOS中断修改日期<br />
		<span style="color: rgb(135, 206, 235); ">::05H &mdash;设置日期</span><br />
		<span style="color: rgb(240, 230, 140); ">call</span> <span style="color: rgb(255, 255, 255); ">:BIOS_INT</span> <span style="color: rgb(255, 255, 255); ">1</span>A ax<span style="color: rgb(255, 255, 255); ">=</span><span style="color: rgb(255, 255, 255); ">0</span>x<span style="color: rgb(255, 255, 255); ">500</span> cx<span style="color: rgb(255, 255, 255); ">=</span><span style="color: rgb(255, 255, 255); ">0</span>x<span style="color: rgb(152, 251, 152); ">%date:~0</span><span style="color: rgb(255, 255, 255); ">,</span><span style="color: rgb(255, 255, 255); ">4</span>% dx<span style="color: rgb(255, 255, 255); ">=</span><span style="color: rgb(255, 255, 255); ">0</span>x<span style="color: rgb(152, 251, 152); ">%date:~5</span><span style="color: rgb(255, 255, 255); ">,</span><span style="color: rgb(255, 255, 255); ">2</span>%<span style="color: rgb(152, 251, 152); ">%%date:~8</span><span style="color: rgb(255, 255, 255); ">,</span><span style="color: rgb(255, 255, 255); ">2</span>%<br />
		exit</p>
<p><span style="color: rgb(255, 255, 255); ">:BIOS_INT</span><br />
		<span style="color: rgb(135, 206, 235); ">::初始化系统参数</span><br />
		<span style="color: rgb(240, 230, 140); ">echo</span> -n > (<span style="color: rgb(240, 230, 140); ">md</span>)<span style="color: rgb(255, 255, 255); ">0</span>x<span style="color: rgb(255, 255, 255); ">300</span>+<span style="color: rgb(255, 255, 255); ">1</span><br />
		write <span style="color: rgb(152, 251, 152); ">%cs%</span> <span style="color: rgb(255, 255, 255); ">-1</span><br />
		write <span style="color: rgb(152, 251, 152); ">%ss%</span> <span style="color: rgb(255, 255, 255); ">-1</span><br />
		write <span style="color: rgb(152, 251, 152); ">%esp%</span> <span style="color: rgb(255, 255, 255); ">-1</span><br />
		write <span style="color: rgb(152, 251, 152); ">%eflags%</span> <span style="color: rgb(255, 255, 255); ">-1</span><br />
		write <span style="color: rgb(152, 251, 152); ">%ds%</span> <span style="color: rgb(255, 255, 255); ">-1</span><br />
		write <span style="color: rgb(152, 251, 152); ">%es%</span> <span style="color: rgb(255, 255, 255); ">-1</span><br />
		write <span style="color: rgb(152, 251, 152); ">%fs%</span> <span style="color: rgb(255, 255, 255); ">-1</span><br />
		write <span style="color: rgb(152, 251, 152); ">%gs%</span> <span style="color: rgb(255, 255, 255); ">-1</span><br />
		write <span style="color: rgb(152, 251, 152); ">%eip%</span> <span style="color: rgb(255, 255, 255); ">0</span>xFFFF<span style="color: rgb(152, 251, 152); ">%1CD</span><br />
		<span style="color: rgb(240, 230, 140); ">shift</span> <span style="color: rgb(255, 255, 255); ">1</span></p>
<p><span style="color: rgb(135, 206, 235); ">::设置参数</span><br />
		:参数<br />
		<span style="color: rgb(240, 230, 140); ">if</span> <span style="color: rgb(255, 255, 255); ">&quot;%2&quot;</span><span style="color: rgb(255, 255, 255); ">==</span><span style="color: rgb(255, 255, 255); ">&quot;&quot;</span> <span style="color: rgb(240, 230, 140); ">goto</span> <span style="color: rgb(255, 255, 255); ">:realmode_run</span><br />
		write %<span style="color: rgb(152, 251, 152); ">%%1%</span> <span style="color: rgb(152, 251, 152); ">%2</span><br />
		<span style="color: rgb(240, 230, 140); ">shift</span> <span style="color: rgb(255, 255, 255); ">1</span><br />
		<span style="color: rgb(240, 230, 140); ">shift</span> <span style="color: rgb(255, 255, 255); ">1</span><br />
		<span style="color: rgb(240, 230, 140); ">goto</span> :参数<br />
		<span style="color: rgb(255, 255, 255); ">:realmode_run</span><br />
		<span style="color: rgb(240, 230, 140); ">call</span> Fn.<span style="color: rgb(255, 255, 255); ">53</span> <span style="color: rgb(255, 255, 255); ">0</span>x<span style="color: rgb(255, 255, 255); ">60000</span><br />
		exit</p>
</div>
<p>&nbsp;</p>
<p>附上修改时间的批处理，用法同上。</p>
<p>直接</p>
<p><a href="http://chenall.net/post/tag/time/" class="st_tag internal_tag" rel="tag" title="标签 time 下的日志">time</a></p>
<p>或</p>
<p>time hh:mm:ss</p>
<p><u style="color: rgb(0, 0, 0); background-color: rgb(253, 253, 253); ">Batchfile语言</u><span style="color: rgb(0, 0, 0); background-color: rgb(253, 253, 253); ">: </span><a href="http://fayaa.com/code/view/23027/" style="background-color: rgb(253, 253, 253); ">GRUB4DOS 修改时间</a></p>
<div class="source" id="" style="font-family: 'Courier New', Consolas, 'Lucida Console'; color: rgb(255, 255, 255); background-color: rgb(51, 51, 51); ">!BAT<br />
	<span style="color: rgb(135, 206, 235); ">::time func for <a href="http://chenall.net/post/tag/grub/" class="st_tag internal_tag" rel="tag" title="标签 GRUB 下的日志">grub</a>4dos by chenall 2011-10-08</span><br />
	<span style="color: rgb(240, 230, 140); ">setlocal</span><br />
	debug <span style="color: rgb(240, 230, 140); ">off</span><br />
	<span style="color: rgb(240, 230, 140); ">set</span> <span style="color: rgb(152, 251, 152); ">edi</span><span style="color: rgb(255, 255, 255); ">=</span><span style="color: rgb(255, 255, 255); ">0</span>x<span style="color: rgb(255, 255, 255); ">60000</span><br />
	<span style="color: rgb(240, 230, 140); ">set</span> <span style="color: rgb(152, 251, 152); ">esi</span><span style="color: rgb(255, 255, 255); ">=</span><span style="color: rgb(255, 255, 255); ">0</span>x<span style="color: rgb(255, 255, 255); ">60004</span><br />
	<span style="color: rgb(240, 230, 140); ">set</span> <span style="color: rgb(152, 251, 152); ">ebp</span><span style="color: rgb(255, 255, 255); ">=</span><span style="color: rgb(255, 255, 255); ">0</span>x<span style="color: rgb(255, 255, 255); ">60008</span><br />
	<span style="color: rgb(240, 230, 140); ">set</span> <span style="color: rgb(152, 251, 152); ">esp</span><span style="color: rgb(255, 255, 255); ">=</span><span style="color: rgb(255, 255, 255); ">0</span>x<span style="color: rgb(255, 255, 255); ">6000</span>C<br />
	<span style="color: rgb(240, 230, 140); ">set</span> <span style="color: rgb(152, 251, 152); ">ebx</span><span style="color: rgb(255, 255, 255); ">=</span><span style="color: rgb(255, 255, 255); ">0</span>x<span style="color: rgb(255, 255, 255); ">60010</span><br />
	<span style="color: rgb(240, 230, 140); ">set</span> <span style="color: rgb(152, 251, 152); ">bx</span><span style="color: rgb(255, 255, 255); ">=</span><span style="color: rgb(255, 255, 255); ">0</span>x<span style="color: rgb(255, 255, 255); ">60010</span><br />
	<span style="color: rgb(240, 230, 140); ">set</span> <span style="color: rgb(152, 251, 152); ">edx</span><span style="color: rgb(255, 255, 255); ">=</span><span style="color: rgb(255, 255, 255); ">0</span>x<span style="color: rgb(255, 255, 255); ">60014</span><br />
	<span style="color: rgb(240, 230, 140); ">set</span> <span style="color: rgb(152, 251, 152); ">dx</span><span style="color: rgb(255, 255, 255); ">=</span><span style="color: rgb(255, 255, 255); ">0</span>x<span style="color: rgb(255, 255, 255); ">60014</span><br />
	<span style="color: rgb(240, 230, 140); ">set</span> <span style="color: rgb(152, 251, 152); ">ecx</span><span style="color: rgb(255, 255, 255); ">=</span><span style="color: rgb(255, 255, 255); ">0</span>x<span style="color: rgb(255, 255, 255); ">60018</span><br />
	<span style="color: rgb(240, 230, 140); ">set</span> <span style="color: rgb(152, 251, 152); ">cx</span><span style="color: rgb(255, 255, 255); ">=</span><span style="color: rgb(255, 255, 255); ">0</span>x<span style="color: rgb(255, 255, 255); ">60018</span><br />
	<span style="color: rgb(240, 230, 140); ">set</span> <span style="color: rgb(152, 251, 152); ">eax</span><span style="color: rgb(255, 255, 255); ">=</span><span style="color: rgb(255, 255, 255); ">0</span>x<span style="color: rgb(255, 255, 255); ">6001</span>C<br />
	<span style="color: rgb(240, 230, 140); ">set</span> <span style="color: rgb(152, 251, 152); ">ax</span><span style="color: rgb(255, 255, 255); ">=</span><span style="color: rgb(255, 255, 255); ">0</span>x<span style="color: rgb(255, 255, 255); ">6001</span>C<br />
	<span style="color: rgb(240, 230, 140); ">set</span> <span style="color: rgb(152, 251, 152); ">gs</span><span style="color: rgb(255, 255, 255); ">=</span><span style="color: rgb(255, 255, 255); ">0</span>x<span style="color: rgb(255, 255, 255); ">60020</span><br />
	<span style="color: rgb(240, 230, 140); ">set</span> <span style="color: rgb(152, 251, 152); ">fs</span><span style="color: rgb(255, 255, 255); ">=</span><span style="color: rgb(255, 255, 255); ">0</span>x<span style="color: rgb(255, 255, 255); ">60024</span><br />
	<span style="color: rgb(240, 230, 140); ">set</span> <span style="color: rgb(152, 251, 152); ">es</span><span style="color: rgb(255, 255, 255); ">=</span><span style="color: rgb(255, 255, 255); ">0</span>x<span style="color: rgb(255, 255, 255); ">60028</span><br />
	<span style="color: rgb(240, 230, 140); ">set</span> <span style="color: rgb(152, 251, 152); ">ds</span><span style="color: rgb(255, 255, 255); ">=</span><span style="color: rgb(255, 255, 255); ">0</span>x<span style="color: rgb(255, 255, 255); ">6002</span>c<br />
	<span style="color: rgb(240, 230, 140); ">set</span> ss<span style="color: rgb(255, 255, 255); ">=</span><span style="color: rgb(255, 255, 255); ">0</span>x<span style="color: rgb(255, 255, 255); ">60030</span><br />
	<span style="color: rgb(240, 230, 140); ">set</span> <span style="color: rgb(152, 251, 152); ">eip</span><span style="color: rgb(255, 255, 255); ">=</span><span style="color: rgb(255, 255, 255); ">0</span>x<span style="color: rgb(255, 255, 255); ">60034</span><br />
	<span style="color: rgb(240, 230, 140); ">set</span> <span style="color: rgb(152, 251, 152); ">cs</span><span style="color: rgb(255, 255, 255); ">=</span><span style="color: rgb(255, 255, 255); ">0</span>x<span style="color: rgb(255, 255, 255); ">60038</span><br />
	<span style="color: rgb(240, 230, 140); ">set</span> <span style="color: rgb(152, 251, 152); ">eflags</span><span style="color: rgb(255, 255, 255); ">=</span><span style="color: rgb(255, 255, 255); ">0</span>x<span style="color: rgb(255, 255, 255); ">60003</span>c<br />
	<span style="color: rgb(135, 206, 235); ">::时钟服务(Clock Service&mdash;&mdash;INT 1AH) </span><br />
	<span style="color: rgb(240, 230, 140); ">call</span> <span style="color: rgb(255, 255, 255); ">:BIOS_INT</span> <span style="color: rgb(255, 255, 255); ">1</span>A ax<span style="color: rgb(255, 255, 255); ">=</span><span style="color: rgb(255, 255, 255); ">0</span>x<span style="color: rgb(255, 255, 255); ">200</span><br />
	<span style="color: rgb(240, 230, 140); ">set</span> <span style="color: rgb(152, 251, 152); ">time</span><span style="color: rgb(255, 255, 255); ">=</span>%*<br />
	<span style="color: rgb(240, 230, 140); ">if</span> <span style="color: rgb(240, 230, 140); ">exist</span> time &#038;&#038; <span style="color: rgb(240, 230, 140); ">goto</span> <span style="color: rgb(255, 255, 255); ">:SET_time</span><br />
	<span style="color: rgb(240, 230, 140); ">call</span> Fn.<span style="color: rgb(255, 255, 255); ">0</span> <span style="color: rgb(255, 255, 255); ">0</span> <span style="color: rgb(255, 255, 255); ">&quot;%%04X%%04X&quot;</span> *<span style="color: rgb(152, 251, 152); ">%cx%</span> *<span style="color: rgb(152, 251, 152); ">%dx%</span> | <span style="color: rgb(255, 255, 255); ">set</span> time<span style="color: rgb(255, 255, 255); ">=</span><br />
	<span style="color: rgb(240, 230, 140); ">echo</span> -n The current time is: <span style="color: rgb(152, 251, 152); ">%time:~0</span><span style="color: rgb(255, 255, 255); ">,</span><span style="color: rgb(255, 255, 255); ">2</span><span style="color: rgb(152, 251, 152); ">%:%</span>time:~<span style="color: rgb(255, 255, 255); ">2</span><span style="color: rgb(255, 255, 255); ">,</span><span style="color: rgb(255, 255, 255); ">2</span><span style="color: rgb(152, 251, 152); ">%:%</span>time:~<span style="color: rgb(255, 255, 255); ">4</span><span style="color: rgb(255, 255, 255); ">,</span><span style="color: rgb(255, 255, 255); ">2</span>%<br />
	<span style="color: rgb(240, 230, 140); ">set</span> <span style="color: rgb(255, 255, 255); ">/p</span> time<span style="color: rgb(255, 255, 255); ">=</span>Enter the new time:</p>
<p>&nbsp;</p>
<p><span style="color: rgb(255, 255, 255); ">:SET_time</span><br />
		<span style="color: rgb(240, 230, 140); ">call</span> <span style="color: rgb(255, 255, 255); ">:BIOS_INT</span> <span style="color: rgb(255, 255, 255); ">1</span>A ax<span style="color: rgb(255, 255, 255); ">=</span><span style="color: rgb(255, 255, 255); ">0</span>x<span style="color: rgb(255, 255, 255); ">300</span> cx<span style="color: rgb(255, 255, 255); ">=</span><span style="color: rgb(255, 255, 255); ">0</span>x<span style="color: rgb(152, 251, 152); ">%time:~0</span><span style="color: rgb(255, 255, 255); ">,</span><span style="color: rgb(255, 255, 255); ">2</span>%<span style="color: rgb(152, 251, 152); ">%%time:~3</span><span style="color: rgb(255, 255, 255); ">,</span><span style="color: rgb(255, 255, 255); ">2</span>%<br />
		exit</p>
<p><span style="color: rgb(255, 255, 255); ">:BIOS_INT</span><br />
		<span style="color: rgb(135, 206, 235); ">::初始化系统参数</span><br />
		<span style="color: rgb(240, 230, 140); ">echo</span> -n > (<span style="color: rgb(240, 230, 140); ">md</span>)<span style="color: rgb(255, 255, 255); ">0</span>x<span style="color: rgb(255, 255, 255); ">300</span>+<span style="color: rgb(255, 255, 255); ">1</span><br />
		write <span style="color: rgb(152, 251, 152); ">%cs%</span> <span style="color: rgb(255, 255, 255); ">-1</span><br />
		write <span style="color: rgb(152, 251, 152); ">%ss%</span> <span style="color: rgb(255, 255, 255); ">-1</span><br />
		write <span style="color: rgb(152, 251, 152); ">%esp%</span> <span style="color: rgb(255, 255, 255); ">-1</span><br />
		write <span style="color: rgb(152, 251, 152); ">%eflags%</span> <span style="color: rgb(255, 255, 255); ">-1</span><br />
		write <span style="color: rgb(152, 251, 152); ">%ds%</span> <span style="color: rgb(255, 255, 255); ">-1</span><br />
		write <span style="color: rgb(152, 251, 152); ">%es%</span> <span style="color: rgb(255, 255, 255); ">-1</span><br />
		write <span style="color: rgb(152, 251, 152); ">%fs%</span> <span style="color: rgb(255, 255, 255); ">-1</span><br />
		write <span style="color: rgb(152, 251, 152); ">%gs%</span> <span style="color: rgb(255, 255, 255); ">-1</span><br />
		write <span style="color: rgb(152, 251, 152); ">%eip%</span> <span style="color: rgb(255, 255, 255); ">0</span>xFFFF<span style="color: rgb(152, 251, 152); ">%1CD</span><br />
		<span style="color: rgb(240, 230, 140); ">shift</span> <span style="color: rgb(255, 255, 255); ">1</span></p>
<p><span style="color: rgb(135, 206, 235); ">::设置参数</span><br />
		:参数<br />
		<span style="color: rgb(240, 230, 140); ">if</span> <span style="color: rgb(255, 255, 255); ">&quot;%2&quot;</span><span style="color: rgb(255, 255, 255); ">==</span><span style="color: rgb(255, 255, 255); ">&quot;&quot;</span> <span style="color: rgb(240, 230, 140); ">goto</span> <span style="color: rgb(255, 255, 255); ">:realmode_run</span><br />
		write %<span style="color: rgb(152, 251, 152); ">%%1%</span> <span style="color: rgb(152, 251, 152); ">%2</span><br />
		<span style="color: rgb(240, 230, 140); ">shift</span> <span style="color: rgb(255, 255, 255); ">1</span><br />
		<span style="color: rgb(240, 230, 140); ">shift</span> <span style="color: rgb(255, 255, 255); ">1</span><br />
		<span style="color: rgb(240, 230, 140); ">goto</span> :参数<br />
		<span style="color: rgb(255, 255, 255); ">:realmode_run</span><br />
		<span style="color: rgb(240, 230, 140); ">call</span> Fn.<span style="color: rgb(255, 255, 255); ">53</span> <span style="color: rgb(255, 255, 255); ">0</span>x<span style="color: rgb(255, 255, 255); ">60000</span><br />
		exit</p>
</div>
<p>&nbsp;</p>
<div style="color: #ff00ff"><strong>若无特别注明，均属本站原创文章，转载请注明：</strong> 转载自:<a href="http://chenall.net/">chenall&#039;s blog</a><br /><strong>本文链接地址:</strong> <a href="http://chenall.net/post/grub4dos_date_bat/">[分享] 直接在GRUB4DOS环境中修改系统时间</a></div>

<p><a href="http://feedads.g.doubleclick.net/~a/pIIDbd0-oWYjm9UruatxvJQLN-M/0/da"><img src="http://feedads.g.doubleclick.net/~a/pIIDbd0-oWYjm9UruatxvJQLN-M/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/pIIDbd0-oWYjm9UruatxvJQLN-M/1/da"><img src="http://feedads.g.doubleclick.net/~a/pIIDbd0-oWYjm9UruatxvJQLN-M/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Chenall/~4/2LMra3lsfWI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://chenall.net/post/grub4dos_date_bat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://chenall.net/post/grub4dos_date_bat/</feedburner:origLink></item>
		<item>
		<title>[分享] 基于GRUB4DOS的硬盘工具箱[2011-12-12更新]</title>
		<link>http://feedproxy.google.com/~r/Chenall/~3/uhGGv-jaS6I/</link>
		<comments>http://chenall.net/post/g4d_hd_tools/#comments</comments>
		<pubDate>Mon, 05 Sep 2011 14:00:55 +0000</pubDate>
		<dc:creator>chenall</dc:creator>
				<category><![CDATA[软件]]></category>
		<category><![CDATA[GRUB4DOS]]></category>

		<guid isPermaLink="false">http://chenall.net/post/g4d_hd_tools/</guid>
		<description><![CDATA[2011-12-12
DPMS驱动更新。
NTBOOT更新。
GRUB4DOS版本升级。
<span class="readmore"><a href="http://chenall.net/post/g4d_hd_tools/" title="[分享] 基于GRUB4DOS的硬盘工具箱[2011-12-12更新]" target="_blank">&#160;【阅读全文】 &#62;&#62;</a></span>]]></description>
			<content:encoded><![CDATA[<div class="PublishedByWebStory-[6]1_50ECAADE9E52425EB14479143B6FA0A5_D26A1110FF6548489EDB93035AE9BE28">
<p>自用的硬盘工具箱，可以方便进行系统维护工作。</p>
<p>引导程序WEE+<a href="http://chenall.net/post/tag/grub4dos/" class="st_tag internal_tag" rel="tag" title="标签 GRUB4DOS 下的日志">GRUB4DOS</a>。</p>
<p>自带基于MODBOOT的一键恢复程序QGHO，可以随时进行备份恢复系统。</p>
<p>可以方便的进行功能扩展，一切皆有可能。</p>
<p>主启动界面。可根据提示按指定按键进入对应的系统。</p>
<p><a href="http://photo.staticsdo.com/a1/410/392/220/79533-49499083-8.png" rel="lightbox[700]"><img alt="" src="http://photo.staticsdo.com/a1/410/392/220/79533-49499083-8.png" style="width: 500px; height: 281px; " /></a><br />
		系统未备份的情况<br />
		<a href="http://photo.staticsdo.com/a1/90/101/69/72230-49499083-8.png" rel="lightbox[700]"><img alt="" src="http://photo.staticsdo.com/a1/90/101/69/72230-49499083-8_765.jpg" style="width: 500px; height: 274px; " /></a></p>
<p>已备份的情况<br />
		<a href="http://photo.staticsdo.com/a1/282/286/254/68897-49499083-8.png" rel="lightbox[700]"><img alt="" src="http://photo.staticsdo.com/a1/282/286/254/68897-49499083-8_765.jpg" style="width: 500px; height: 278px; " /></a></p>
<p>工具箱菜单界面<br />
		默认情况下按SHIFT+F10才会显示，因为这些东西给维护人员使用的，普通用户不需要知道。</p>
<p><a href="http://chenall.net/wp-content/uploads/2011/05/CFDFF884105769A213B412168D92D989626CCA24.png" rel="lightbox[700]"><img alt="" src="http://chenall.net/wp-content/uploads/2011/05/CFDFF884105769A213B412168D92D989626CCA24.png" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; width: 500px; height: 274px; " /></a></p>
<p>自定义默认启动菜单接口界面（这个菜单是指对普通使用的）。自定义的菜单文件SYS_MENU.LST</p>
<p><a href="http://chenall.net/wp-content/uploads/2011/05/1F2B4B0330DAA46A38935EE1F114A8F0ED19280B.png" rel="lightbox[700]"><img alt="" src="http://chenall.net/wp-content/uploads/2011/05/1F2B4B0330DAA46A38935EE1F114A8F0ED19280B.png" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; width: 500px; height: 279px; " /></a></p>
<p>其它说明：</p>
<ul>
<li>默认情况下不显示任何菜单，只有在需要的时候才会显示（按对应的按键，或使用了自定义的菜单接口）</li>
<li>自带MODBOOT和NTBOOT两个组件。</li>
<li>可以通过很简单的方法进行功能扩展。</li>
<li>恢复系统使用的是QGHO（基于MODBOOT）。</li>
<li>启动时如果不按任何按键或按了无效按键则使用默认的方式启动系统（启动第一激活的主分区上）<br />
			如果有存在SYS_MENU.LST文件则会调用该菜单。<br />
			可以通过按指定的按键进入对应的系统。</li>
<li>所以的东西都可以自己修改（当然了前提是你熟悉<span class='wp_keywordlink'><a href="http://grub4dos.chenall.com" title="下载最新版Grub4dos" target="_blank">grub4dos</a></span>，知道要改的东西。）</li>
<li>因为是使用WEE作为主引导的，安装、修复都很方便，双击一下就搞定了。</li>
<li>一些文件目录说明。<br />
			ADDONS　　　附加工具目录，下载附加的工具直接解压到该目录下就可以了。<br />
			BIN　　　　　　一些应用程序，用于修复系统引导。<br />
			MODBOOT　　MODBOOT模块程序<br />
			<a href="http://chenall.net/post/tag/ntboot/" class="st_tag internal_tag" rel="tag" title="标签 ntboot 下的日志">NTBOOT</a>　　　NTBOOT模块程序<br />
			<a href="http://chenall.net/post/tag/grub/" class="st_tag internal_tag" rel="tag" title="标签 GRUB 下的日志">grub</a>　　　　　<a href="http://chenall.net/post/tag/grub/" class="st_tag internal_tag" rel="tag" title="标签 GRUB 下的日志">GRUB</a>4DOS程序目录。<br />
			以上目录一般情况下你可以不必理会它里面的内容。<br />
			PRELOAD.BAT　主引导界面还有快捷键的定义批处理（GRUB4DOS专用）<br />
			preload.fnt　　主引导界面使用的字体库。<br />
			SYS_MENU.LST　自定义的默认引导菜单（公开的菜单，自己创建，如果有的话默认就会显示这个菜单内容）</li>
</ul>
<p>更新说明：</p>
<p>2011-12-12</p>
<ul>
<li>DPMS驱动更新。</li>
<li>NTBOOT更新。</li>
<li>GRUB4DOS版本升级。</li>
<li>
<div>﻿文件名称: <a href="http://yunfile.com/file/chenall/5e6ad38f/">dpms-2011-12-12.zip</a></div>
<div>文件大小: 19.01 MB (19,929,198 字节)</div>
<div>修改时间: 2011年12月12日，22:56:28</div>
<div>MD5: 457DAD730BEDDB01181AEB801CF40385</div>
<div>SHA1: 6F490FDABB55C5970A71EFFAC8130A9123A8C56C</div>
</li>
<li>
<div>
<div>﻿文件名称: <a href="http://yunfile.com/file/chenall/790fb9e6/">SYS_TOOLS_2011-12-12.rar</a></div>
<div>文件大小: 14.82 MB (15,535,038 字节)</div>
<div>修改时间: 2011年12月12日，23:06:16</div>
<div>MD5: 8A842517E5E13C4988996A72E61519D7</div>
<div>SHA1: 1AA58EE3A61A59651AF62A698AEC96EF91EF6D2E</div>
<div>&nbsp;</div>
</p></div>
</li>
</ul>
<p>2011-11-06</p>
<ul>
<li>GRUB4DOS更新.</li>
<li>BUG修正.</li>
<li>新的启动界面,增加了从USB/CDROM/NET启动的功能.</li>
<li>﻿文件名称:<a href="http://filemarkets.com/file/chenall/36045b72/"> SYS_TOOLS.rar</a>
<div>文件大小: 15.07 MB (15,799,475 字节)</div>
<div>修改时间: 2011年11月06日，21:38:40</div>
<div>MD5: 6C4FE76C6BAA5EFEC24FE433AAF29617</div>
<div>SHA1: B9AABE947A2F5AEF18F6F4E5C7B7FE43F5A7AE65</div>
</li>
<li>
<div>
<div>﻿文件名称: <a href="http://filemarkets.com/file/chenall/daa998c0/">TangoPE.rar</a></div>
<div>文件大小: 19.56 MB (20,512,083 字节)</div>
<div>修改时间: 2011年11月05日，23:03:03</div>
<div>MD5: 6FE2E14E670163F14214F557E66FB6A7</div>
<div>SHA1: 0681B49ADB127F759839684D53BEEC4164E7F47C</div>
<p>&nbsp;</p>
</p></div>
</li>
</ul>
<p>2011-10-07</p>
<ul>
<li>
<div>﻿QGHO修正</div>
</li>
<li>
<div>GRUB4DOS更新</div>
</li>
<li>
<div>新增支持自动检测多操作系统功能<br />
				按F8就可以显示支持的系统菜单<br />
				按Ctrl+F8重新检测<br />
				比如你硬盘第一个分区安装WINDOWS 2003,第二个分区安装WINDOWS XP<br />
				第三分分区安装WINDOWS 7，启动时按F8可以自动检测到，按菜单选择启动。</p>
<p>&nbsp;</p>
<p>其它说明</p>
<p>1.支持VBOOT启动的VHD/VMDK系统，把这些文件放在放在任意硬盘的VBOOT目录下就可以自动检测<br />
					2.支持NT6的VHD启动功能。把VHD文件放在任意硬盘的WIN_VHD目录中就可以自动检测.<br />
					3.以上两个系统的文件名必须以@开头才会自动检测。<br />
					&nbsp;</p>
<p>&nbsp;</p>
</p></div>
</li>
<li>
<div>文件名称: <a href="http://yunfile.com/file/chenall/7926221f/">SYS_TOOLS.rar</a></div>
<div>文件大小: 14.64 MB (15,351,788 字节)</div>
<div>修改时间: 2011年10月07日，15:58:10</div>
<div>MD5: 49BF267F7D56BFC6D29945049EECD2E3</div>
<div>SHA1: C2135579385F241A18A3CB44D940F15899ACC373</div>
</li>
</ul>
<div>2011-09-29</div>
<ul>
<li>QGHO修正调整,</li>
<li>NTBOOT更新,支持调用DPMS生成驱动</li>
<li>DPMS更新.</li>
<li>GRUB4DOS更新到最新版本.</li>
<li>更新的文件
<div>&nbsp;</div>
<div>﻿文件名称:<a href="http://yfdisk.com/file/chenall/3c745326/"> SYS_TOOLS.rar</a></div>
<div>文件大小: 14.64 MB (15,351,440 字节)</div>
<div>修改时间: 2011年09月29日，10:16:21</div>
<div>MD5: DE305F13988F48CA5B277C36ABF8E2A0</div>
<div>SHA1: 564D83D102069FBB4D837535A176D3B4255284C8</div>
<div>
<p>&nbsp;</p>
<div>&nbsp;</div>
<div>﻿文件名称: <a href="http://yunfile.com/file/chenall/f324f353/">DPMS.rar</a></div>
<div>文件大小: 20.11 MB (21,089,239 字节)</div>
<div>修改时间: 2011年09月27日，11:02:58</div>
<div>MD5: EB5448C255316C6764DF2FC3E01729EF</div>
<div>SHA1: AFEB4E033EE2B1DF96155B8DE4D9994E8CE6D16B</div>
<div>&nbsp;</div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
</p></div>
</li>
</ul>
<p>2011-09-19</p>
<ul>
<li>修正QGHO备份失败的问题.
<div>&nbsp;</div>
<div>﻿文件名称: <a href="http://yfdisk.com/file/chenall/dd132570/">SYS_TOOLS.rar</a></div>
<div>文件大小: 14.64 MB (15,347,771 字节)</div>
<div>修改时间: 2011年09月19日，16:30:02</div>
<div>MD5: B04161FAEFB8C8879126E3EBC865262B</div>
<div>SHA1: 6E1DC5D3CD6E594AB2F653EB6F84B2897CDD3111</div>
</li>
</ul>
<p>2011-09-18</p>
<ol>
<li>升级GRLDR到最新版,更新WEESETUP程序.</li>
<li>修正上一个版本QGHO的BUG</li>
<li>更新的文件
<div>﻿文件名称: <a href="http://yfdisk.com/file/chenall/22fcc471/">SYS_TOOLS.rar</a></div>
<div>文件大小: 14.64 MB (15,347,788 字节)</div>
<div>修改时间: 2011年09月18日，15:54:36</div>
<div>MD5: A305340E685ABE46F8E378544876657C</div>
<div>SHA1: 8EA9A293946817C2064D6D76DD3E835C0DC0F642</div>
</li>
</ol>
<p>2011-09-14</p>
<ol>
<li><a href="http://chenall.net/post/modboot_qgho/">全新的QGHO一键恢复程序.</a></li>
<li>升级GRLDR</li>
<li>更新DPMS驱动包到最新版本</li>
<li>更新的文件如下.(可以直接点击链接下载,或者使用本文最后面的链接下载.)
<div>﻿文件名称: <a href="http://yfdisk.com/file/chenall/f3bf77b5/">DPMS.rar</a></div>
<div>文件大小: 13.58 MB (14,236,181 字节)</div>
<div>修改时间: 2011年09月14日，15:50:59</div>
<div>MD5: EF6BFC4A1D465BF6D3915728732411B5</div>
<div>SHA1: F78C17BD761BF64F9DF32448D972458602560C41</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div>﻿文件名称: <a href="http://yfdisk.com/file/chenall/33107aef/">SYS_TOOLS.rar</a></div>
<div>文件大小: 14.64 MB (15,347,738 字节)</div>
<div>修改时间: 2011年09月15日，00:16:50</div>
<div>MD5: 0553909E4A14530D44EF90986826316E</div>
<div>SHA1: 3F57554B3A6E5FD8066B7686092BFD4C86F868AC</div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
</p></div>
</li>
</ol>
<p>2011-09-05</p>
<ol>
<li>
<div>QGHO更新,全新设计的QGHO,测试版.</div>
</li>
<li>
<div>GRLDR升级到最新版本.</div>
</li>
<li>
<div>addons内置DPMS.BAT脚本.</div>
</li>
<li>
<div>更新的文件.<br />
				﻿文件名称: <a href="http://www.kuaipan.cn/file/id_119657788903416.html">SYS_TOOLS.rar</a></div>
<div>文件大小: 14.63 MB (15,343,255 字节)</div>
<div>修改时间: 2011年09月05日，22:56:36</div>
<div>MD5: 986C8931BD9F2E45BD8CF4AF0853B1E1</div>
<div>SHA1: 5E2C3059FEEFDA6D10F88D241377B4DF42ACA052</div>
<div>&nbsp;</div>
</li>
</ol>
<p>2011-08-30</p>
<ol>
<li>
<div>﻿文件名称: SYS_TOOLS.rar (<span style="color:#ff0000;">此版本内置的QGHO有问题,不能正常使用,请更新或使用旧版本</span>.)</div>
<div>文件大小: 14.62 MB (15,331,029 字节)</div>
<div>修改时间: 2011年08月30日，10:58:18</div>
<div>MD5: 41D626B3A44221F690FBC1726EF93A38</div>
<div>SHA1: 7A51A1A8C51FAA8D36D12A9CEA88DA29D2DDB67E<br />
				&nbsp;</div>
<p>更新NTBOOT/MODBOOT脚本.<br />
				更新GRUB4DOS到最新版本.<br />
				&nbsp;</p>
</li>
<li>
<div>﻿文件名称: DPMS.rar</div>
<div>文件大小: 19.52 MB (20,470,818 字节)</div>
<div>修改时间: 2011年08月27日，00:22:06</div>
<div>MD5: D5E3EE36D248AF12B855441957C613B8</div>
<div>SHA1: 94C9B96C215D0EE9459AA5D8F72B6B2EE3B71F3E</div>
<div>&nbsp;</div>
</li>
<li>
<div>﻿文件名称: SRSF6N.rar</div>
<div>文件大小: 20.94 MB (21,952,553 字节)</div>
<div>修改时间: 2011年08月30日，10:56:39</div>
<div>MD5: 98490515E653BCA249A048FEFAC3D505</div>
<div>SHA1: 901C16E92A8390D433FBFF372D1435C06E8A9EA8</div>
</li>
</ol>
<p>2011-08-11</p>
<ol>
<li>主程序更新,修正PRELOAD.BAT一个BUG.</li>
</ol>
<p>2011-08-09</p>
<ol>
<li>DPMS更新.<br />
			修正了一个小错误.</li>
<li>GRUB4DOS更新到2011-08-09版.</li>
<li>NTBOOT更新.<br />
			PE1添加了一个ntpath参数,具体用法请查看tangope.rar里面的#TangoPE.txt.</li>
<li>MODBOOT更新.<br />
			批处理脚本修改优化.</li>
<li>QGHO一键恢复程序更新.<br />
			重新设计了自定义恢复过程,初次启动时自动查找所有硬盘分区根目录下的GHO文件并列在菜单上.<br />
			可以选择指定分区再次查找(默认找2级目录) ,可以修改支持查找N级目录<br />
			打开MODBOOT\LEVEL3\QGHO.BAT查找Q.S.SUB=2,要找几级就改成2,建议不要太大,否则查找的过程很慢.</li>
<li>添加了一个新的下载地址.<span class='wp_keywordlink'><a href="http://www.dbank.com/invite/1453161" title="数据银行注册邀请" target="_blank">dbank</a></span>下载.</li>
<li>其它小调整 .</li>
</ol>
<p>2011-08-02<br />
		1.添加<a href="http://bbs.wuyou.com/viewthread.php?tid=197550">DPMS模块</a>(动态生成SRS驱动),供PE1.X调用.<br />
		2.更新GRLDR到最新版本.<br />
		3.添加<a href="http://bbs.wuyou.com/viewthread.php?tid=179738">SRSF6N</a><a href="http://chenall.net/post/tag/%e6%a8%a1%e5%9d%97/" class="st_tag internal_tag" rel="tag" title="标签 模块 下的日志">模块</a>.<br />
		4.添加模块 <a href="http://hi.baidu.com/nictense/blog/item/d833fe26f6b64414918f9dc4.html">MINI TangoPE 2011 Native</a>.<br />
		5.重新设计了模块菜单加载方法,新的方案只要在第一次使用或删改了模块时才需要重新生成菜单.<br />
		不需要每次启动都动态生成菜单,加快了启动速度.</p>
<p>注: 因为使用了新的菜单方案,所以必须更新所有的ADDONS菜单脚本.请重新下载所有模块进行更新.</p>
<p>2011-07-29<br />
		1.更新GRUB4DOS和WEESETUP.其它小更新.</p>
<p>2011-07-13<br />
		1.修正一些小问题。<br />
		2.使用最新版GRUB4DOS。<br />
		3.NTXPPE模块更新。</p>
<p>2011-07-09<br />
		1.更新NTBOOT到最新版。<br />
		2.更新MODBOOT到最新版.<br />
		3.QGHO（快速恢复）增强。<br />
		支持简单快速恢复。<br />
		使用方法：&nbsp;创建一个QGHO.###到你要恢复到的分区根目录下（必须是激活的主分区）<br />
		QGHO.###文件内容指定了GHO文件的路径。<br />
		4.GRUB4DOS升级到最新版。<br />
		5.支持修改默认的一键恢复密码。</p>
<p>安装方法：</p>
<p>1. 下载SYS_TOOLS.RAR并解压到你电脑的任意磁盘根目录下。<br />
		注： 解压完成后会多出一个BOOT目录（隐藏的）。<br />
		2. 进入BOOT\BIN目录，双击setup_hd0.cmd就行了。<br />
		注：如果有杀毒软件可能会有警报，否则不会有什么提示，重启系统即可。<br />
		如果安装失败可以尝试使用BOOTICE进行安装<br />
		BOOTICE 下载地址: <a href="http://bbs.wuyou.com/viewthread.php?tid=57675">http://bbs.wuyou.com/viewthread.php?tid=57675</a></p>
<p>用BOOTICE进行第二步的安装方法<br />
		<img alt="" border="0" height="292" src="http://chenall.net/wp-content/uploads/2011/05/31AAE4E9668FEC052E0BF3DB7B4FD8FD4A46CA6A.png" width="456" /></p>
<p><img alt="" border="0" height="444" src="http://chenall.net/wp-content/uploads/2011/05/8112D8AD5D88D0D09C2F16C21C5C6A8EDDDC6301.png" width="375" /></p>
<p><img alt="" border="0" height="502" src="http://chenall.net/wp-content/uploads/2011/05/57DFB415C94B3DCBFB4DFB69843744865EB8742A.png" width="462" /></p>
<p>下载地址：</p>
<p>基本模块 ： 直接解压到任意磁盘的根目录下，然后运行BOOT\BIN\setup_hd0.cmd就可以了（也可以自己使用BOOTICE安装WEE引导，使用WEE的默认菜单就行）</p>
<p>下载1: &nbsp;<a href="http://dl.dbank.com/c0sf56wmi1" title="硬盘工具箱数据银行下载">Dbank网盘</a></p>
<p>下载2：<a href="http://yunfile.com/ls/chenall/2402d97e/">YunFile</a></p>
<p>下载3: &nbsp;<a href="http://www.gokuai.com/a/Hn59fO06g0Q31h4X">够快网盘</a></p>
<p>下载3：<a href="http://www.everbox.com/f/VII9BIop9ntA765fUwUq887b5j">EVERBOX网盘</a></p>
<p>SYSTOOLS.RAR是主模块,必须的,其它的是附加模块,解压到ADDONS目录下就行了.</p>
<p>ADDONS目录是存放其它模块的，该目录下的#xxxxx.txt是对应模块的菜单内容。</p>
<p>第一行固定为菜单标题，不需要title，后面的是该菜单要执行的命令。<br />
		可以自己参考以上模块自己添加其它模块，也欢迎共享你的模块。</p>
<p>默认是启动第一个激活分区上面的系统，你可以自己写一个菜单文件改名为SYS_MENU.LST放到BOOT目录下，默认就会调用该菜单。</p>
<p>进入一键恢复的密码默认是qgho，在启动时按F9输入正确的密码之后可以修改.</p>
</div>
<p>&nbsp;</p>
<div style="color: #ff00ff"><strong>若无特别注明，均属本站原创文章，转载请注明：</strong> 转载自:<a href="http://chenall.net/">chenall&#039;s blog</a><br /><strong>本文链接地址:</strong> <a href="http://chenall.net/post/g4d_hd_tools/">[分享] 基于GRUB4DOS的硬盘工具箱[2011-12-12更新]</a></div>

<p><a href="http://feedads.g.doubleclick.net/~a/rHW6dJ9cyJrdiFUwOy6H5kl1hO8/0/da"><img src="http://feedads.g.doubleclick.net/~a/rHW6dJ9cyJrdiFUwOy6H5kl1hO8/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/rHW6dJ9cyJrdiFUwOy6H5kl1hO8/1/da"><img src="http://feedads.g.doubleclick.net/~a/rHW6dJ9cyJrdiFUwOy6H5kl1hO8/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Chenall/~4/uhGGv-jaS6I" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://chenall.net/post/g4d_hd_tools/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		<feedburner:origLink>http://chenall.net/post/g4d_hd_tools/</feedburner:origLink></item>
		<item>
		<title>[原创] GRUB4DOS 通用模块之文件选择模块[2011-10-01 更新]</title>
		<link>http://feedproxy.google.com/~r/Chenall/~3/ujSJkqZusRE/</link>
		<comments>http://chenall.net/post/g4d_filelist/#comments</comments>
		<pubDate>Mon, 22 Aug 2011 05:16:17 +0000</pubDate>
		<dc:creator>chenall</dc:creator>
				<category><![CDATA[原创分享]]></category>
		<category><![CDATA[编程]]></category>
		<category><![CDATA[GRUB4DOS]]></category>
		<category><![CDATA[批处理]]></category>
		<category><![CDATA[文件列表]]></category>
		<category><![CDATA[模块]]></category>

		<guid isPermaLink="false">http://chenall.net/?p=754</guid>
		<description><![CDATA[本模块是一个grub4dos的批处理,
可用于搜索N级目录下的指定类型文件,并显示于菜单上
这是一个通用模块,可以通过参数直接调用或者通过预先设置变量的方法再调用,
使用方法请参考本站另一贴子
<span class="readmore"><a href="http://chenall.net/post/g4d_filelist/" title="[原创] GRUB4DOS 通用模块之文件选择模块[2011-10-01 更新]" target="_blank">&#160;【阅读全文】共4018字</a></span>]]></description>
			<content:encoded><![CDATA[<div class="PublishedByWebStory-[6]1_2071079DCE6B4BC99F82C73CB5816B1B_554CBF5AF7424CD4AE50FE714FD7C1C1">
<p><span style="FONT-SIZE: 14px">本模块是一个<span class='wp_keywordlink'><a href="http://grub4dos.chenall.com" title="下载最新版Grub4dos" target="_blank">grub4dos</a></span>的批处理,</span></p>
<p><span style="FONT-SIZE: 14px">可用于搜索N级目录下的指定类型文件,并显示于菜单上</span></p>
<p><span style="FONT-SIZE: 14px">这是一个通用模块,可以通过参数直接调用或者通过预先设置变量的方法再调用,</span></p>
<p><span style="FONT-SIZE: 14px">使用方法请参考本站另一贴子</span><br />
		<a href="http://chenall.net/post/grub4dos_hdpart/">[原创] GRUB4DOS 通用模块之分区选择</a></p>
<h3 style="color:#b22222;">2011-08-22 (最终版）</h3>
<ol>
<li>优化了检测代码．</li>
<li>filpre支持子目录的检测．</li>
</ol>
<h3 style="color:#b22222;">2011-08-21 (变化比较大，请注意看更新说明，新的版本使用起来更加灵活．）</h3>
<ol>
<li>菜单标题自动居中显示</li>
<li>cmd的语法改变<br />
			旧的版本<span style="color:#ff0000;">cmd=echo</span>要改成如下.<br />
			<span style="color:#ff0000;">cmd=&quot;echo %1&quot;</span><br />
			在批处理中调用需要使用<span style="color:#ff0000;">%%1</span><br />
			即，需要多一个<span style="color:#ff0000;">%1</span>的参数，这个参数用于接收文件参数．可以放在cmd参数的任意位置．<br />
			并且支持类拟<span style="color:#ff0000;">%~dpnx1</span>的格式．<br />
			&nbsp;</li>
<li>新增<span style="color:#ff0000;">filpre</span>参数,指定文件名前辍.<br />
			<strike>注意:使用该参数时,<span style="color:#ff0000;">subdir</span>参数将不起作用,为了不影响其它情况下的检测速度,该参数只支持单级目录.</strike></li>
</ol>
<h3 style="color:#b22222;">2011-08-16 更新:(新的版本处理的速度会慢一些,但精确度比较高,之前的版本会把带扩展名的目录当成文件显示在菜单上)</h3>
<ol>
<li>添加了一个参数root,指定要从哪个目录开始找.例子:<br />
			root=()/boot<br />
			从只找/BOOT目录下的文件,注:前面的()是必须的,你也可以指定一个磁盘,代表从这个磁盘的这个目录开始查找比如<br />
			root=(hd0,4)/boot<br />
			则先从(hd0,4)/boot目录下查找文件,<br />
			注:如果有带devs参数,必须确保上面的(hd0,4)磁盘有在在devs列表中.</li>
<li>支持查找无扩展名的文件(之前的版本无扩展名的全部被当成一个子目录对待)</li>
<li>新的ext参数只查找无扩展名的文件.如下,会查找无扩展名的文件.<br />
			ext=.</li>
<li>菜单的注释新增了文件大小的提示(因为新的版本使用cat &#8211;locate=0来检测是否一个文件,就顺便把这个也利用上了.)</li>
</ol>
<p>本模块支持的参数如下</p>
<ul>
<li><span style="FONT-SIZE: 14px"><span style="COLOR: #800000">m.cmd</span>&nbsp; &nbsp; &nbsp; &nbsp;指定每个菜单要执行的命令 &nbsp;( 必须的其它的都是可选参数.)</span></li>
<li><span style="FONT-SIZE: 14px">m.title &nbsp; &nbsp; &nbsp; &nbsp;指定菜单标题</span></li>
<li><span style="FONT-SIZE: 14px">m.return &nbsp; &nbsp;指定返回命令</span></li>
<li><span style="FONT-SIZE: 14px">m.menu &nbsp; &nbsp; 指定菜单位置(默认使用(md)0&#215;210+16来存放菜单)</span></li>
<li><span style="FONT-SIZE: 14px">m.subdir &nbsp; &nbsp;指定要查找的目录级数,默认1</span></li>
<li><span style="FONT-SIZE: 14px">m.devs &nbsp; &nbsp; &nbsp;指定要查找的设备(find的参数)</span></li>
<li><span style="FONT-SIZE: 14px">m.init &nbsp; &nbsp; &nbsp; &nbsp; 指定菜单的初始化命令</span></li>
<li><span style="FONT-SIZE: 14px">m.ext &nbsp; &nbsp; &nbsp; &nbsp; 指定扩展名(用于过滤),多个扩展名用双引号每个扩展名之间用空格分隔&nbsp;<br />
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;例: ext=&quot;.gho .txt&quot;</span></li>
<li><span style="FONT-SIZE: 14px">m.root &nbsp; &nbsp; &nbsp; 指定根目录.(第一个被检查的目录)比如(hd0,4)/boot/或(hd0,5)<br />
			　　　　　注：该参数和m.devs参数配合使用时，将会只查找以上路径下的文件．例子:<br />
			　　　　　指定m.root=(hd0,4)/boot 或　/boot<br />
			　　　　　则，只会查找符合条件的磁盘/BOOT目录下的文件．</span></li>
<li><span style="FONT-SIZE: 14px">m.dirext &nbsp; &nbsp; 是否检测带扩展名的目录,设为任意值即启用,默认禁用,<br />
			&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;除非有必要,否则不建议使用,启动这个参数会使得检测的速度变得很慢.</span></li>
<li><span style="FONT-SIZE: 14px">m.filpre　 &nbsp;指定文件名前辍,过滤非以filpre参数开头的文件.(测试)<br />
			&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span><br />
			&nbsp;</li>
</ul>
<p><span style="FONT-SIZE: 16px">以下是使用的效果截图,欢迎反馈BUG或建议.</span></p>
<ol>
<li>
<h3 style="COLOR: #000080">当前分区,根目录<br />
				<a href="http://photo.staticsdo.com/a1/230/427/174/61646-49499083-8.png" rel="lightbox[754]"><img height="222" src="http://photo.staticsdo.com/a1/230/427/174/61646-49499083-8.png" width="400" /></a></h3>
</li>
<li>
<h3 style="COLOR: #000080">当前分区,3级目录&nbsp;</h3>
<p><a href="http://photo.staticsdo.com/a1/422/260/236/61644-49499083-8.png" rel="lightbox[754]"><img height="222" src="http://photo.staticsdo.com/a1/422/260/236/61644-49499083-8.png" width="400" /></a></p>
</li>
<li>
<h3 style="COLOR: #000080">当前分区,二级目录,</h3>
<p><a href="http://photo.staticsdo.com/a1/38/219/66/61645-49499083-8.png" rel="lightbox[754]"><img height="223" src="http://photo.staticsdo.com/a1/38/219/66/61645-49499083-8.png" width="400" /></a></p>
</li>
<li>
<h3 style="COLOR: #000080">二级目录,所有硬盘分区</h3>
<p><a href="http://photo.staticsdo.com/a1/294/78/309/61647-49499083-8.png" rel="lightbox[754]"><img height="221" src="http://photo.staticsdo.com/a1/294/78/309/61647-49499083-8.png" width="400" /></a></p>
</li>
<li>
<h3 style="color:#000080;">2011-08-16更新的版本效果图.<br />
				<a href="http://photo.staticsdo.com/a1/218/396/80/62270-49499083-8.png" rel="lightbox[754]"><img alt="" src="http://photo.staticsdo.com/a1/218/396/80/62270-49499083-8.png" style="width: 400px; height: 218px; " /></a></h3>
</li>
</ol>
<p>复制源代码请点这里</p>
<p><a href="http://fayaa.com/code/view/21739/raw/">http://fayaa.com/code/view/21739/raw/</a></p>
</div>
<div style="background:#fdfdfd;color:black;"><u>Batchfile语言</u>: <a href="http://fayaa.com/code/view/21739/">GRUB4DOS 文件列表菜单</a></div>
<div class="source" id="" style="font-family: 'Courier New', Consolas, 'Lucida Console'; color: rgb(245, 222, 179); background-color: rgb(47, 79, 79); ">!BAT<br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">setlocal</span><br />
	debug <span style="color: rgb(176, 196, 222); font-weight: bold; ">off</span><br />
	checkrange <span style="color: rgb(173, 216, 230); ">20110918</span>:<span style="color: rgb(173, 216, 230); ">-1</span> read <span style="color: rgb(173, 216, 230); ">0</span>x<span style="color: rgb(173, 216, 230); ">8278</span> || <span style="color: rgb(245, 222, 179); ">echo</span> Please use <a href="http://chenall.net/post/tag/grub/" class="st_tag internal_tag" rel="tag" title="标签 GRUB 下的日志">grub</a><span style="color: rgb(173, 216, 230); ">4</span>dos<span style="color: rgb(173, 216, 230); ">-0</span>.<span style="color: rgb(173, 216, 230); ">4</span>.<span style="color: rgb(173, 216, 230); ">5</span>b<span style="color: rgb(173, 216, 230); ">-2011-09-18</span> or above! &#038;&#038; exit <span style="color: rgb(173, 216, 230); ">1</span><br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">if</span> <span style="color: rgb(127, 255, 212); ">&quot;%1&quot;</span><span style="color: rgb(245, 222, 179); ">==</span><span style="color: rgb(127, 255, 212); ">&quot;&quot;</span> <span style="color: rgb(176, 196, 222); font-weight: bold; ">goto</span> :参数检测<br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">set</span> *<br />
	:获取参数<br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">if</span> <span style="color: rgb(245, 222, 179); ">/i</span> <span style="color: rgb(127, 255, 212); ">&quot;%1&quot;</span><span style="color: rgb(245, 222, 179); ">==</span><span style="color: rgb(127, 255, 212); ">&quot;&quot;</span> &#038;&#038; <span style="color: rgb(176, 196, 222); font-weight: bold; ">goto</span> :参数检测<br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">set</span> <span style="color: rgb(216, 191, 216); ">m</span>.<span style="color: rgb(216, 191, 216); ">%~1</span><span style="color: rgb(245, 222, 179); ">=</span><span style="color: rgb(216, 191, 216); ">%~2</span><br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">shift</span> <span style="color: rgb(173, 216, 230); ">1</span><br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">shift</span> <span style="color: rgb(173, 216, 230); ">1</span><br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">goto</span> :获取参数</p>
<p>	<span style="color: rgb(70, 130, 180); font-weight: bold; ">:help</span><br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">echo</span> Usage: <span style="color: rgb(216, 191, 216); ">%0</span> cmd<span style="color: rgb(245, 222, 179); ">=</span><span style="color: rgb(127, 255, 212); ">&quot;cmd for each file&quot;</span> OPTIONS..<br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">echo</span> OPTIONS:<br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">echo</span> -e \t title<span style="color: rgb(245, 222, 179); ">=</span><span style="color: rgb(127, 255, 212); ">&quot;the main menu title&quot;</span><br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">echo</span> -e \t menu<span style="color: rgb(245, 222, 179); ">=</span><span style="color: rgb(127, 255, 212); ">&quot;pre_set menu file&quot;</span><br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">echo</span> -e \t subdir<span style="color: rgb(245, 222, 179); ">=</span>n<br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">echo</span> -e \t devs<span style="color: rgb(245, 222, 179); ">=</span><span style="color: rgb(127, 255, 212); ">&quot;find parameters&quot;</span><br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">echo</span> -e \t return<span style="color: rgb(245, 222, 179); ">=</span><span style="color: rgb(127, 255, 212); ">&quot;return cmd&quot;</span><br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">echo</span> -e \t init<span style="color: rgb(245, 222, 179); ">=</span><span style="color: rgb(127, 255, 212); ">&quot;init cmd&quot;</span><br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">echo</span> -e \t filpre<span style="color: rgb(245, 222, 179); ">=</span>filepre<br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">echo</span> -e \t ext<span style="color: rgb(245, 222, 179); ">=</span>fileext<br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">echo</span> -e \t root<span style="color: rgb(245, 222, 179); ">=</span><span style="color: rgb(127, 255, 212); ">&quot;root dir. e.g. ()/boot/&quot;</span><br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">echo</span> -e \n\t <span style="color: rgb(176, 196, 222); font-weight: bold; ">for</span> more please visit http:<span style="color: rgb(245, 222, 179); ">//chenall.net</span><br />
	exit</p>
<p>	:菜单居中<br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">set</span> <span style="color: rgb(216, 191, 216); ">title</span><span style="color: rgb(245, 222, 179); ">=</span>屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯<br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">set</span> <span style="color: rgb(216, 191, 216); ">title</span><span style="color: rgb(245, 222, 179); ">=</span><span style="color: rgb(216, 191, 216); ">%title:~0</span><span style="color: rgb(245, 222, 179); ">,</span><span style="color: rgb(216, 191, 216); ">%1%</span>%<br />
	exit</p>
<p>	:参数检测<br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">if</span> not <span style="color: rgb(176, 196, 222); font-weight: bold; ">exist</span> m.cmd &#038;&#038; <span style="color: rgb(176, 196, 222); font-weight: bold; ">goto</span> <span style="color: rgb(70, 130, 180); font-weight: bold; ">:help</span><br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">if</span> not <span style="color: rgb(176, 196, 222); font-weight: bold; ">exist</span> m.title &#038;&#038; <span style="color: rgb(176, 196, 222); font-weight: bold; ">set</span> <span style="color: rgb(216, 191, 216); ">m</span>.title<span style="color: rgb(245, 222, 179); ">=</span>Please select a file<br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">if</span> not <span style="color: rgb(176, 196, 222); font-weight: bold; ">exist</span> m.menu &#038;&#038; <span style="color: rgb(176, 196, 222); font-weight: bold; ">set</span> <span style="color: rgb(216, 191, 216); ">m</span>.menu<span style="color: rgb(245, 222, 179); ">=</span>(<span style="color: rgb(176, 196, 222); font-weight: bold; ">md</span>)<span style="color: rgb(173, 216, 230); ">0</span>x<span style="color: rgb(173, 216, 230); ">210</span>+<span style="color: rgb(173, 216, 230); ">16</span> &#038;&#038; <span style="color: rgb(176, 196, 222); font-weight: bold; ">echo</span> -e default <span style="color: rgb(173, 216, 230); ">1</span>\ndebug <span style="color: rgb(176, 196, 222); font-weight: bold; ">off</span> > (<span style="color: rgb(176, 196, 222); font-weight: bold; ">md</span>)<span style="color: rgb(173, 216, 230); ">0</span>x<span style="color: rgb(173, 216, 230); ">210</span>+<span style="color: rgb(173, 216, 230); ">16</span><br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">if</span> not <span style="color: rgb(176, 196, 222); font-weight: bold; ">exist</span> m.subdir &#038;&#038; <span style="color: rgb(176, 196, 222); font-weight: bold; ">set</span> <span style="color: rgb(216, 191, 216); ">m</span>.subdir<span style="color: rgb(245, 222, 179); ">=</span><span style="color: rgb(173, 216, 230); ">1</span><br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">if</span> not <span style="color: rgb(176, 196, 222); font-weight: bold; ">exist</span> m.devs &#038;&#038; <span style="color: rgb(176, 196, 222); font-weight: bold; ">set</span> <span style="color: rgb(216, 191, 216); ">m</span>.devs<span style="color: rgb(245, 222, 179); ">=</span>&#8211;<span style="color: rgb(176, 196, 222); font-weight: bold; ">set</span>-root<br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">if</span> not <span style="color: rgb(176, 196, 222); font-weight: bold; ">exist</span> m.root &#038;&#038; <span style="color: rgb(176, 196, 222); font-weight: bold; ">set</span> <span style="color: rgb(216, 191, 216); ">m</span>.root<span style="color: rgb(245, 222, 179); ">=</span>()<br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">echo</span> -e !BAT\necho <span style="color: rgb(216, 191, 216); ">%m</span>.cmd% \>\> <span style="color: rgb(216, 191, 216); ">%m</span>.menu% > (<span style="color: rgb(176, 196, 222); font-weight: bold; ">md</span>)<span style="color: rgb(173, 216, 230); ">0</span>x<span style="color: rgb(173, 216, 230); ">260</span>+<span style="color: rgb(173, 216, 230); ">4</span><br />
	<span style="color: rgb(218, 112, 214); ">::获取标题字符数量用于标题居中</span><br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">set</span> <span style="color: rgb(216, 191, 216); ">title</span><span style="color: rgb(245, 222, 179); ">=</span><span style="color: rgb(216, 191, 216); ">%m</span>.title%<br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">set</span> <span style="color: rgb(245, 222, 179); ">/a</span> title<span style="color: rgb(245, 222, 179); ">=</span><span style="color: rgb(173, 216, 230); ">68</span>-*<span style="color: rgb(173, 216, 230); ">0</span>x<span style="color: rgb(173, 216, 230); ">4</span>CB<span style="color: rgb(173, 216, 230); ">00</span>><span style="color: rgb(245, 222, 179); ">></span><span style="color: rgb(245, 222, 179); ">1</span><br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">call</span> :菜单居中 <span style="color: rgb(216, 191, 216); ">%title%</span><br />
	<span style="color: rgb(218, 112, 214); ">::自动生成菜单</span><br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">set</span> ?_n<span style="color: rgb(245, 222, 179); ">=</span><span style="color: rgb(173, 216, 230); ">1</span><br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">set</span> <span style="color: rgb(216, 191, 216); ">m</span>.info<span style="color: rgb(245, 222, 179); ">=</span>File list menu <span style="color: rgb(176, 196, 222); font-weight: bold; ">for</span> grub<span style="color: rgb(173, 216, 230); ">4</span>dos by chenall.\n\t\t <span style="color: rgb(176, 196, 222); font-weight: bold; ">for</span> more information please visit http:<span style="color: rgb(245, 222, 179); ">//chenall.net</span><br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">if</span> <span style="color: rgb(176, 196, 222); font-weight: bold; ">exist</span> m.init &#038;&#038; <span style="color: rgb(176, 196, 222); font-weight: bold; ">echo</span> <span style="color: rgb(216, 191, 216); ">%m</span>.init% >> <span style="color: rgb(216, 191, 216); ">%m</span>.menu%<br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">echo</span> title <span style="color: rgb(216, 191, 216); ">%title%</span> <span style="color: rgb(216, 191, 216); ">%m</span>.title% <span style="color: rgb(216, 191, 216); ">%title%</span>\n\n\t<span style="color: rgb(216, 191, 216); ">%m</span>.info% >> <span style="color: rgb(216, 191, 216); ">%m</span>.menu%<br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">echo</span> <span style="color: rgb(176, 196, 222); font-weight: bold; ">pause</span> <span style="color: rgb(216, 191, 216); ">%m</span>.info% >> <span style="color: rgb(216, 191, 216); ">%m</span>.menu%<br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">echo</span> -e $[<span style="color: rgb(173, 216, 230); ">0106</span>] <span style="color: rgb(216, 191, 216); ">%m</span>.info%<br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">echo</span> $[<span style="color: rgb(173, 216, 230); ">0102</span>] Please wait &#8230;<br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">echo</span> $[<span style="color: rgb(173, 216, 230); ">1105</span>] Working&#8230;&#8230;<br />
	root <span style="color: rgb(216, 191, 216); ">%m</span>.root%<br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">if</span> <span style="color: rgb(176, 196, 222); font-weight: bold; ">exist</span> m.debug <span style="color: rgb(176, 196, 222); font-weight: bold; ">echo</span> %@<a href="http://chenall.net/post/tag/time/" class="st_tag internal_tag" rel="tag" title="标签 time 下的日志">time</a>%<br />
	find <span style="color: rgb(216, 191, 216); ">%m</span>.devs% <span style="color: rgb(176, 196, 222); font-weight: bold; ">call</span> :生成文件列表 || <span style="color: rgb(245, 222, 179); ">echo</span> Unknow Error.<br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">if</span> <span style="color: rgb(176, 196, 222); font-weight: bold; ">exist</span> m.debug <span style="color: rgb(176, 196, 222); font-weight: bold; ">pause</span> %@time%<br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">echo</span> title 屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯 http:<span style="color: rgb(245, 222, 179); ">//chenall.net</span> 屯 <span style="color: rgb(173, 216, 230); ">2011-08-22</span> 屯\n\n\t<span style="color: rgb(216, 191, 216); ">%m</span>.info% >> <span style="color: rgb(216, 191, 216); ">%m</span>.menu%<br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">echo</span> <span style="color: rgb(176, 196, 222); font-weight: bold; ">pause</span> <span style="color: rgb(216, 191, 216); ">%m</span>.info% >> <span style="color: rgb(216, 191, 216); ">%m</span>.menu%<br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">set</span> ?_n<span style="color: rgb(245, 222, 179); ">=</span><br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">if</span> not <span style="color: rgb(176, 196, 222); font-weight: bold; ">exist</span> m.return &#038;&#038; configfile <span style="color: rgb(216, 191, 216); ">%m</span>.menu%<br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">echo</span> title <span style="color: rgb(173, 216, 230); ">0</span>. Return >> <span style="color: rgb(216, 191, 216); ">%m</span>.menu%<br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">echo</span> <span style="color: rgb(216, 191, 216); ">%m</span>.return% >> <span style="color: rgb(216, 191, 216); ">%m</span>.menu%<br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">echo</span> boot >> <span style="color: rgb(216, 191, 216); ">%m</span>.menu%<br />
	configfile <span style="color: rgb(216, 191, 216); ">%m</span>.menu%<br />
	exit</p>
<p>	:文件过滤<br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">if</span> <span style="color: rgb(127, 255, 212); ">&quot;%~1&quot;</span><span style="color: rgb(245, 222, 179); ">==</span><span style="color: rgb(127, 255, 212); ">&quot;&quot;</span> exit<br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">set</span> <span style="color: rgb(216, 191, 216); ">tmp</span><span style="color: rgb(245, 222, 179); ">=</span><span style="color: rgb(216, 191, 216); ">%1</span><br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">shift</span><br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">if</span> <span style="color: rgb(127, 255, 212); ">&quot;%tmp:~-2,1%&quot;</span><span style="color: rgb(245, 222, 179); ">==</span><span style="color: rgb(127, 255, 212); ">&quot;~&quot;</span> &#038;&#038; <span style="color: rgb(176, 196, 222); font-weight: bold; ">goto</span> :文件过滤<br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">if</span> <span style="color: rgb(127, 255, 212); ">&quot;%tmp:~0,1%&quot;</span><span style="color: rgb(245, 222, 179); ">==</span><span style="color: rgb(127, 255, 212); ">&quot;$&quot;</span> &#038;&#038; <span style="color: rgb(176, 196, 222); font-weight: bold; ">goto</span> :文件过滤<br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">call</span> :检测文件 <span style="color: rgb(216, 191, 216); ">%0</span><br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">goto</span> :文件过滤</p>
<p>	:获取文件大小<br />
	calc *<span style="color: rgb(173, 216, 230); ">0</span>x<span style="color: rgb(173, 216, 230); ">8290</span>><span style="color: rgb(245, 222, 179); ">></span><span style="color: rgb(245, 222, 179); ">30</span> &#038;&#038; <span style="color: rgb(176, 196, 222); font-weight: bold; ">set</span> <span style="color: rgb(216, 191, 216); ">size</span><span style="color: rgb(245, 222, 179); ">=</span><span style="color: rgb(173, 216, 230); ">30</span>GB &#038;&#038; exit<br />
	calc *<span style="color: rgb(173, 216, 230); ">0</span>x<span style="color: rgb(173, 216, 230); ">8290</span>><span style="color: rgb(245, 222, 179); ">></span><span style="color: rgb(245, 222, 179); ">20</span> &#038;&#038; <span style="color: rgb(176, 196, 222); font-weight: bold; ">set</span> <span style="color: rgb(216, 191, 216); ">size</span><span style="color: rgb(245, 222, 179); ">=</span><span style="color: rgb(173, 216, 230); ">20</span>MB &#038;&#038; exit<br />
	calc *<span style="color: rgb(173, 216, 230); ">0</span>x<span style="color: rgb(173, 216, 230); ">8290</span>><span style="color: rgb(245, 222, 179); ">></span><span style="color: rgb(245, 222, 179); ">10</span> &#038;&#038; <span style="color: rgb(176, 196, 222); font-weight: bold; ">set</span> <span style="color: rgb(216, 191, 216); ">size</span><span style="color: rgb(245, 222, 179); ">=</span><span style="color: rgb(173, 216, 230); ">10</span>KB &#038;&#038; exit<br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">set</span> <span style="color: rgb(216, 191, 216); ">size</span><span style="color: rgb(245, 222, 179); ">=</span><span style="color: rgb(173, 216, 230); ">00</span>B<br />
	exit</p>
<p>	:检测文件<br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">if</span> <span style="color: rgb(176, 196, 222); font-weight: bold; ">exist</span> m.debug<span style="color: rgb(173, 216, 230); ">1</span> &#038;&#038; <span style="color: rgb(176, 196, 222); font-weight: bold; ">echo</span> <span style="color: rgb(216, 191, 216); ">%~f1</span><br />
	<span style="color: rgb(218, 112, 214); ">::检测前辍</span><br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">call</span> Fn.<span style="color: rgb(173, 216, 230); ">10</span> <span style="color: rgb(127, 255, 212); ">&quot;%m.filpre%&quot;</span> <span style="color: rgb(127, 255, 212); ">&quot;%~n1&quot;</span><br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">if</span> <span style="color: rgb(127, 255, 212); ">&quot;%@retval%&quot;</span><span style="color: rgb(245, 222, 179); ">==</span><span style="color: rgb(127, 255, 212); ">&quot;1&quot;</span> &#038;&#038; <span style="color: rgb(176, 196, 222); font-weight: bold; ">goto</span> :检测目录<br />
	<span style="color: rgb(218, 112, 214); ">::检测后辍</span><br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">if</span> <span style="color: rgb(176, 196, 222); font-weight: bold; ">exist</span> m.ext || <span style="color: rgb(245, 222, 179); ">goto</span> :添加菜单<br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">set</span> <span style="color: rgb(216, 191, 216); ">f</span>.type<span style="color: rgb(245, 222, 179); ">=</span><span style="color: rgb(216, 191, 216); ">%~x1</span><br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">if</span> not <span style="color: rgb(176, 196, 222); font-weight: bold; ">exist</span> f.type <span style="color: rgb(176, 196, 222); font-weight: bold; ">set</span> <span style="color: rgb(216, 191, 216); ">f</span>.type<span style="color: rgb(245, 222, 179); ">=</span>.<br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">call</span> :过滤 <span style="color: rgb(216, 191, 216); ">%m</span>.ext% &#038;&#038; <span style="color: rgb(176, 196, 222); font-weight: bold; ">goto</span> :添加菜单</p>
<p>	:检测目录<br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">if</span> <span style="color: rgb(216, 191, 216); ">%m</span>.subdir%<span style="color: rgb(245, 222, 179); ">==</span><span style="color: rgb(173, 216, 230); ">0</span> &#038;&#038; exit<br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">if</span> <span style="color: rgb(176, 196, 222); font-weight: bold; ">exist</span> m.dirext || <span style="color: rgb(245, 222, 179); ">if</span> <span style="color: rgb(127, 255, 212); ">&quot;%~x1&quot;</span><span style="color: rgb(245, 222, 179); ">==</span><span style="color: rgb(127, 255, 212); ">&quot;&quot;</span> || <span style="color: rgb(245, 222, 179); ">exit</span><br />
	cat &#8211;length<span style="color: rgb(245, 222, 179); ">=</span><span style="color: rgb(173, 216, 230); ">0</span> <span style="color: rgb(245, 222, 179); ">/%1</span> &#038;&#038; exit<br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">if</span> <span style="color: rgb(176, 196, 222); font-weight: bold; ">exist</span> m.debug<span style="color: rgb(173, 216, 230); ">2</span> &#038;&#038; <span style="color: rgb(176, 196, 222); font-weight: bold; ">echo</span> $[<span style="color: rgb(173, 216, 230); ">0101</span>] <span style="color: rgb(216, 191, 216); ">%~f1</span><br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">goto</span> :生成文件列表</p>
<p>	:过滤<br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">if</span> <span style="color: rgb(127, 255, 212); ">&quot;%1&quot;</span><span style="color: rgb(245, 222, 179); ">==</span><span style="color: rgb(127, 255, 212); ">&quot;&quot;</span> &#038;&#038; exit <span style="color: rgb(173, 216, 230); ">1</span><br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">shift</span><br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">if</span> <span style="color: rgb(245, 222, 179); ">/i</span> <span style="color: rgb(127, 255, 212); ">&quot;%0&quot;</span><span style="color: rgb(245, 222, 179); ">==</span><span style="color: rgb(127, 255, 212); ">&quot;%f.type%&quot;</span> || <span style="color: rgb(245, 222, 179); ">goto</span> :过滤<br />
	exit</p>
<p>	:添加菜单<br />
	cat &#8211;length<span style="color: rgb(245, 222, 179); ">=</span><span style="color: rgb(173, 216, 230); ">0</span> <span style="color: rgb(245, 222, 179); ">/%1</span> || <span style="color: rgb(245, 222, 179); ">goto</span> :检测目录<br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">call</span> :获取文件大小<br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">if</span> <span style="color: rgb(176, 196, 222); font-weight: bold; ">exist</span> m.debug<span style="color: rgb(173, 216, 230); ">3</span> &#038;&#038; <span style="color: rgb(176, 196, 222); font-weight: bold; ">echo</span> $[<span style="color: rgb(173, 216, 230); ">0102</span>] <span style="color: rgb(216, 191, 216); ">%~f1</span><br />
	calc *<span style="color: rgb(173, 216, 230); ">0</span>x<span style="color: rgb(173, 216, 230); ">8290</span><span style="color: rgb(245, 222, 179); ">=</span>*<span style="color: rgb(173, 216, 230); ">0</span>x<span style="color: rgb(173, 216, 230); ">8290</span>>><span style="color: rgb(216, 191, 216); ">%size:~0</span><span style="color: rgb(245, 222, 179); ">,</span><span style="color: rgb(173, 216, 230); ">2</span>%<br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">set</span> <span style="color: rgb(216, 191, 216); ">size</span><span style="color: rgb(245, 222, 179); ">=</span>%@retval% <span style="color: rgb(216, 191, 216); ">%size:~2%</span><br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">set</span> <span style="color: rgb(216, 191, 216); ">m</span><span style="color: rgb(245, 222, 179); ">=</span><span style="color: rgb(173, 216, 230); ">1</span> %?_n%<br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">echo</span> title <span style="color: rgb(216, 191, 216); ">%m:~</span><span style="color: rgb(173, 216, 230); ">-3</span>%. <span style="color: rgb(216, 191, 216); ">%~f1</span>\n\n\t~<span style="color: rgb(216, 191, 216); ">%size%</span> <span style="color: rgb(216, 191, 216); ">%~f1</span> >> <span style="color: rgb(216, 191, 216); ">%m</span>.menu%<br />
	(<span style="color: rgb(176, 196, 222); font-weight: bold; ">md</span>)<span style="color: rgb(173, 216, 230); ">0</span>x<span style="color: rgb(173, 216, 230); ">260</span>+<span style="color: rgb(173, 216, 230); ">4</span> <span style="color: rgb(216, 191, 216); ">%~f1</span><br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">echo</span> boot >> <span style="color: rgb(216, 191, 216); ">%m</span>.menu%<br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">set</span> <span style="color: rgb(245, 222, 179); ">/a</span> ?_n<span style="color: rgb(245, 222, 179); ">=</span>%?_n%+<span style="color: rgb(173, 216, 230); ">1</span><br />
	exit</p>
<p>	:生成文件列表<br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">setlocal</span><br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">if</span> <span style="color: rgb(127, 255, 212); ">&quot;%~1&quot;</span><span style="color: rgb(245, 222, 179); ">==</span><span style="color: rgb(127, 255, 212); ">&quot;&quot;</span> || <span style="color: rgb(245, 222, 179); ">root</span> <span style="color: rgb(216, 191, 216); ">%~f1</span><br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">set</span> <span style="color: rgb(245, 222, 179); ">/a</span> m.subdir<span style="color: rgb(245, 222, 179); ">=</span><span style="color: rgb(216, 191, 216); ">%m</span>.subdir%<span style="color: rgb(173, 216, 230); ">-1</span><br />
	ls | <span style="color: rgb(245, 222, 179); ">call</span> :文件过滤<span style="color: rgb(245, 222, 179); ">=</span> || <span style="color: rgb(245, 222, 179); ">echo</span><br />
	<span style="color: rgb(176, 196, 222); font-weight: bold; ">endlocal</span><br />
	exit</div>
<div style="color: #ff00ff"><strong>若无特别注明，均属本站原创文章，转载请注明：</strong> 转载自:<a href="http://chenall.net/">chenall&#039;s blog</a><br /><strong>本文链接地址:</strong> <a href="http://chenall.net/post/g4d_filelist/">[原创] GRUB4DOS 通用模块之文件选择模块[2011-10-01 更新]</a></div>

<p><a href="http://feedads.g.doubleclick.net/~a/wEfITlzvDI3Wr673kRTL7EzHqeQ/0/da"><img src="http://feedads.g.doubleclick.net/~a/wEfITlzvDI3Wr673kRTL7EzHqeQ/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/wEfITlzvDI3Wr673kRTL7EzHqeQ/1/da"><img src="http://feedads.g.doubleclick.net/~a/wEfITlzvDI3Wr673kRTL7EzHqeQ/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Chenall/~4/ujSJkqZusRE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://chenall.net/post/g4d_filelist/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://chenall.net/post/g4d_filelist/</feedburner:origLink></item>
	</channel>
</rss><!-- Dynamic page generated in 2.254 seconds. --><!-- Cached page generated by WP-Super-Cache on 2012-02-11 01:03:12 --><!-- Compression = gzip -->

