<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?xml-stylesheet type="text/xsl" href="css/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>光子时代</title><link>http://www.fenglongsheng.com/</link><description>是一种理想。</description><generator>RainbowSoft Studio Z-Blog 1.8 Walle Build 91204</generator><language>zh-CN</language><copyright>Copyright 光子时代 Rights Reserved.</copyright><pubDate>Mon, 20 Feb 2012 12:31:30 +0800</pubDate><item><title>godaddy asp空间显示详细错误信息的方法</title><author>w3cnet@qq.com (光子时代)</author><link>http://www.fenglongsheng.com/post/223.html</link><pubDate>Mon, 20 Feb 2012 12:29:33 +0800</pubDate><guid>http://www.fenglongsheng.com/post/223.html</guid><description><![CDATA[<p>下面教程主要介绍如何使用web.config文件显示详细的错误信息,而不是单纯500 error<br /><br />默认情况下.NET程序出现错误，客户端显示以下错误：<br />引用:<br />Server Error in '/mytestapp' Application.<br />Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed.<br />我们可以通过创建或修改web.config文件使之显示详细的错误:<br />代码1:<br />(适用于GoDaddy Windows IIS6的web.config代码)<br />复制内容到剪贴板代码:<br />&lt;!-- Web.Config Configuration File --&gt;<br /><br />&lt;configuration&gt;<br />&lt;system.web&gt;<br />&lt;customErrors mode=&quot;Off&quot;/&gt;<br />&lt;/system.web&gt;<br />&lt;/configuration&gt;<br />代码2:Windows IIS7的用户使用下面的代码:<br />复制内容到剪贴板代码:<br />&lt;configuration&gt;<br />&lt;system.webServer&gt;<br />&lt;httpErrors errorMode=&quot;Detailed&quot; /&gt;<br />&lt;asp scriptErrorSentToBrowser=&quot;true&quot;/&gt;<br />&lt;/system.webServer&gt;<br />&lt;system.web&gt;<br />&lt;customErrors mode=&quot;Off&quot;/&gt;<br />&lt;compilation debug=&quot;true&quot;/&gt;<br />&lt;/system.web&gt;<br />&lt;/configuration&gt;<br />设置404错误页面<br />使用web.config文件也可以配置显示错误面<br />其中的mycustompage.htm是你想设置的错误页面<br />复制内容到剪贴板代码:<br />&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&gt;<br /><br />&lt;configuration&gt;<br />&lt;system.web&gt;<br />&lt;customErrors mode=&quot;On&quot; default Redirect=&quot;mycustompage.htm&quot;/&gt;<br />&lt;/system.web&gt;<br />&lt;/configuration&gt;<br />Mode值的意思：<br />&quot;On&quot; 始终显示自定义(友好的)信息。 <br />&quot;Off&quot; 始终显示详细的 ASP.NET 错误信息。 <br />&quot;RemoteOnly&quot; 只对不在本地 Web 服务器上运行的用户显示自定义(友好的)信息。出于安全目的，建议使用此设置，以便不向远程客户端显示应用程序的详细信息。<br /><br />from <a href="http://www.yinhaoran.cn/article.asp?id=87">url:http://www.yinhaoran.cn/article.asp?id=87</a></p>]]></description><category>服务器</category><comments>http://www.fenglongsheng.com/post/223.html#comment</comments><wfw:comment>http://www.fenglongsheng.com/</wfw:comment><wfw:commentRss>http://www.fenglongsheng.com/feed.asp?cmt=223</wfw:commentRss><trackback:ping>http://www.fenglongsheng.com/cmd.asp?act=tb&amp;id=223&amp;key=9cf0b5d1</trackback:ping></item><item><title>DOS 命令集锦 </title><author>w3cnet@qq.com (光子时代)</author><link>http://www.fenglongsheng.com/post/222.html</link><pubDate>Mon, 13 Feb 2012 20:45:29 +0800</pubDate><guid>http://www.fenglongsheng.com/post/222.html</guid><description><![CDATA[<p>&nbsp;</p><div>&nbsp;</div><div>　　cd　　　　　改变当前目录　　　　　　　sys 　　制作DOS系统盘&nbsp;</div><div>&nbsp;</div><div>　　copy　　　　拷贝文件　　　　　　　　　del 　　删除文件&nbsp;</div><div>&nbsp;</div><div>　　deltree　 　删除目录树　　　　　　　　dir 　　列文件名&nbsp;</div><div>&nbsp;</div><div>　　diskcopy　　制磁盘　　　　　　　　　　edit　　文本编辑&nbsp;</div><div>&nbsp;</div><div>　　format 　　 格式化磁盘　　　　　　　　md　　　建立子目录&nbsp;</div><div>&nbsp;</div><div>　　mem 　　　　查看内存状况　　　　　　　type　　显示文件内容&nbsp;</div><div>&nbsp;</div><div>　　rd　　　　　删除目录　　　　　　　　　ren 　　改变文件名&nbsp;</div><div>&nbsp;</div><div>　　记得多少啊，忘了就去上课看看，下面四个命令是新的，给出命令格式，你自己试试看，学电脑重要的就是摸索。&nbsp;</div><div>&nbsp;</div><div>　　cls 　　　　清屏&nbsp;</div><div>&nbsp;</div><div>［适用场合］　　屏幕上太乱了，或是屏幕上出现乱码了， 清除屏幕上显示内容但不</div><div>　　　　　　　　影响电脑内部任何信息&nbsp;</div><div>&nbsp;</div><div>［用　　法］　　cls　 回车&nbsp;</div><div>&nbsp;</div><div>　　move 　　　 移动文件，改目录名　&nbsp;</div><div>&nbsp;</div><div>［适用场合］　　移动文件到别的目录&nbsp;</div><div>&nbsp;</div><div>［用　　法］　　move [文件名] [目录]　　　　　　　 移动文件至新目录下&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　move [目录名] [目录名] 　　　　　　改目录名&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>［例　　子］　　c:\&gt;move c:\autoexec.bat c:\old&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　移动autoexec.bat文件至old目录下&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　c:\&gt;move c:\config.sys c:\temp&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　移动config.sys文件至old目录下&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>　　more　　　　分屏显示&nbsp;</div><div>&nbsp;</div><div>［适用场合］　　当输出很多一屏显示不下时采用，几乎适合所有命令，尤其是type</div><div>　　　　　　　　等命令时很有用。 使用more时磁盘不能有写保护，也不适合光驱。&nbsp;</div><div>&nbsp;</div><div>［用　　法］　　type [文件名] | more 　　　　　　　分屏显示文件内容&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　more &lt; [文件名]　　　　　　　　　　分屏显示文件内容&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>［例　　子］　　C:\&gt;type msdos.w40 | more&nbsp;</div><div>&nbsp;</div><div>　　xcopy 　　　拷贝目录和文件&nbsp;</div><div>&nbsp;</div><div>［适用场合］　　在进行连同子目录一起拷贝时很有用，在拷贝大量文件时比COPY命令</div><div>　　　　　　　　要快得多&nbsp;</div><div>&nbsp;</div><div>［用　　法］　　xcopy [文件名] [目录] 　　　　　　将指定文件拷贝到指定目录&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　xcopy [源目录] [目的目录]　　将源目录连子目录考到目的目录下&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　xcopy *.* [目录] /s　　　将文件与非空子目录拷贝到指定目录&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　其它常用参数还有: v 拷贝后校验，会影响速度</div><div>　　　　　　　 　　　　　　　　 　e 与s 相似，但即使子目录是空的也会拷贝。</div><div>&nbsp;</div><div>&mdash;&mdash;help&nbsp;</div><div>&nbsp;</div><div>　　我们已经学习了不少DOS命令，是不是感到记忆起来很困难，其实高手都不记命令的用法，而只是知道某个命令可以解决某个问题，或在哪个场合下该用哪个命令，用时就现查该命令的用法（当然这要求你首先得有一定英文基础，而且知道哪个命令是干啥的，如果都不行没办法，就只好记了，或者学windows吧）&nbsp;</div><div>&nbsp;</div><div>　　那该怎样查一个命令的用法呢？这就要用到help命令，它可提供所有命令的帮助。&nbsp;</div><div>&nbsp;</div><div>　　help　　　　帮助&nbsp;</div><div>&nbsp;</div><div>［适用场合］　　当您想具体了解DOS命令的使用方法时使用&nbsp;</div><div>&nbsp;</div><div>［用　　法］　　help 　　　　　　　　　　　　　　　提供所有DOS命令帮助&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　help [DOS命令] 　　　　　　　　　　提供有关命令的帮助&nbsp;</div><div>&nbsp;</div><div>　　如果你只大致记得某个命令，可以在提示符后直接输入help命令，然后将出现下面的画面：&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>　　将光标移至需查询的命令,回车后可查询到其语法格式，比如 cd 命令吧:&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>　　将光标移至,回车后可查询到其详细语法及功能的解释；将光标移至,回车后可查询到其语法的详细举例，我们常用举例功能，下面是点后出现的画面&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>　　如你记得是什么命令就好办了，可以按Alt+S键选择Find(查找),则会弹出下面的对话框&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>　　输入需查找的DOS命令，回车后可立即查询到有关命令的详细信息。&nbsp;</div><div>&nbsp;</div><div>&mdash;&mdash;attrib|data|lable　　&nbsp;</div><div>&nbsp;</div><div>　　attrib　　　设置文件属性&nbsp;</div><div>&nbsp;</div><div>［适用场合］　　想对文件做较特殊的处理时&nbsp;</div><div>&nbsp;</div><div>［用　　法］　　attrib 显示所有文件的属性&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　attrib +r或-r [文件名] 设置文件属性是否为只读&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　attrib +h或-h [文件名] 设置文件属性是否隐含&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　attrib +s或-s [文件名] 设置文件属性是否为系统文件&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　attrib +a或-a [文件名] 设置文件属性是否为归档文件&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　attrib /s 设置包括子目录的文件在内的文件属性&nbsp;</div><div>&nbsp;</div><div>［例　　子］　　C:\TEST&gt;attrib +r wina20.386&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　C:\&gt;attrib +h *.* /s 隐含所有文件&nbsp;</div><div>&nbsp;</div><div>　　date 　　　 显示及修改日期&nbsp;</div><div>&nbsp;</div><div>［适用场合］　　想知道或修改时间和日期&nbsp;</div><div>&nbsp;</div><div>［用　　法］　　date 显示和改变当前日期&nbsp;</div><div>&nbsp;</div><div>［例　　子］　　C:\&gt;date 09-20-1996 将日期改为1996年9月20日&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　C:\&gt;date&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　　　Current date is Tue 08-20-1996&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　　　Enter new date (mm-dd-yy):09-20-1996&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　　　按月-日-年的顺序修改当前日期 直接按回车键忽略修改日期&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>　　lable 　　　设置卷标号&nbsp;</div><div>&nbsp;</div><div>［适用场合］　　用来为磁盘做个标记&nbsp;</div><div>&nbsp;</div><div>［用　　法］　　label 显示磁盘卷标&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　label [盘符] [卷标名] 设定指定盘的卷标&nbsp;</div><div>&nbsp;</div><div>［例　　子］　　C:\&gt;label&nbsp;</div><div>　　　　　　　　Volume in drive C is WANG&nbsp;</div><div>　　　　　　　　Volume Serial Number is 2116-1DD0&nbsp;</div><div>　　　　　　　　volume label (11 characters,Enter for none)?&nbsp;</div><div>　　　　　　　　可以输入卷标，直接回车后&nbsp;</div><div>　　　　　　　　Delete current volume label (Y/N)?&nbsp;</div><div>　　　　　　　　按y删除旧卷标，按n不更改&nbsp;</div><div>&nbsp;</div><div>&mdash;&mdash;defrag　　&nbsp;</div><div>&nbsp;</div><div>　　defrag　　　磁盘碎片整理&nbsp;</div><div>&nbsp;</div><div>［适用场合］　　磁盘读写次数很多，或磁盘使用时间很长了，可能需要使用这条命令</div><div>　　　　　　　　整理磁盘。磁盘碎片并不是指磁盘坏了，而只是由于多次的拷贝和删</div><div>　　　　　　　　除文件后，磁盘使用会很不连贯，致使速度变慢。&nbsp;</div><div>&nbsp;</div><div>［用　　法］　　1. C:\&gt;defrag&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　2. 选择要整理的磁盘&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　3. 电脑分析磁盘状况，然后告诉我们磁盘有多少需整理。按Esc键&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　4. 选择Optimization Method(磁盘优化方法)，选择&ldquo;全部优化&rdquo;</div><div>　　　　　　　　或&ldquo;仅优化文件&rdquo;&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　5. 选择Begin Optimization 开始整理&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　6. 整理完后，按回车键&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　7. 按Esc退出。&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>&mdash;&mdash;doskey|fdisk&nbsp;</div><div>&nbsp;</div><div>　　doskey　　　调用和建立DOS宏命令&nbsp;</div><div>&nbsp;</div><div>［适用场合］　　经常需要输入重复的命令时，有非常大的用处&nbsp;</div><div>&nbsp;</div><div>［用　　法］　　doskey　&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　将doskey驻留内存，开辟出缓冲区，以后输入的命令都将保存在缓冲</div><div>　　　　　　　　区中，可以随时调用&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　doskey [宏命令名]=[命令名] 　&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　将宏命令定义为命令，以后输入宏命令，电脑就会执行相应的命令&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　doskey /reinstall　　　　　　重新安装doskey&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　doskey /bufsize= 　　　　　　设置缓冲区的大小&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　doskey /macros 　　　　　　　显示所有doskey宏&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　doskey /history 　　　 　　　显示内存中所有命令&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　doskey /insert|overstrike 设置新键入的字符是否覆盖旧的字符&nbsp;</div><div>&nbsp;</div><div>［例　　子］　　C:\&gt;DOSKEY&nbsp;</div><div>　　　　　　　　C:\&gt;dir&nbsp;</div><div>　　　　　　　　C:\&gt;copy C:\temp\*.* a:&nbsp;</div><div>　　　　　　　　C:\&gt;del c:\temp\*.*&nbsp;</div><div>　　　　　　　　C:\&gt;copy b:\*.* c:\temp&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　上述四条命令都已被保存，用光标控制键的上下可以依次选择使用或</div><div>　　　　　　　　修改, 也可以用F7键列出保存的所有命令</div><div>&nbsp;</div><div>　　　　　　　　C:\&gt;doskey di=dir/w/p 定义di为宏命令，意思是执行dir/w/p&nbsp;</div><div>&nbsp;</div><div>　　fdisk 　　　硬盘分区&nbsp;</div><div>&nbsp;</div><div>［建　　议］　　只有硬盘被很利害的病毒感染时，或是一块新硬盘才需要分区，最好</div><div>　　　　　　　　请懂行的人指导。硬盘都需经过低级格式化，分区，格式化三个步骤</div><div>　　　　　　　　才可使用，成品电脑内的硬盘都已经做过这些加工了。&nbsp;</div><div>&nbsp;</div><div>［用　　法］　　输入fdisk后按回车即可进入提示界面&nbsp;</div><div>&nbsp;</div><div>&mdash;&mdash;emm386|lh|memmaker&nbsp;</div><div>&nbsp;</div><div>　　emm386　　　扩展内存管理&nbsp;</div><div>&nbsp;</div><div>［建　　议］　　这条命令比较复杂，在第五章中系统配置里将详细介绍&nbsp;</div><div>&nbsp;</div><div>lh/loadhigh　　 将程序装入高端内存&nbsp;</div><div>&nbsp;</div><div>［适用场合］　　这条命令一般用在autoexec.bat中，当有些软件需要的基本内存很大</div><div>　　　　　　　　时，它会有用&nbsp;</div><div>&nbsp;</div><div>［用　　法］　　lh [程序] 　&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　将程序装入高端内存 使用此命令时，config.sys文件中需有下面两</div><div>　　　　　　　　条语句。 device=emm386.exe dos=umb&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　lh [程序] /l:区号 　　　将程序装入指定的umb区&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　lh /s 　　　　　　　　　一般是由memmaker专用&nbsp;</div><div>&nbsp;</div><div>［例　　子］　　C:\MOUSE\&gt;lh mouse 　将鼠标驱动程序装入高端内存&nbsp;</div><div>&nbsp;</div><div>　memmaker　　　内存优化管理&nbsp;</div><div>&nbsp;</div><div>［适用场合］　　这个命令现在已经很少用了，在当年DOS流行时，想玩游戏可少不了&nbsp;</div><div>　　　　　　　　它，它可以腾出许多基本内存供游戏使用，只需安装一次即可&nbsp;</div><div>&nbsp;</div><div>［用　　法］　　1. C:\&gt;memmaker&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　2. 回车继续，F3退出&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　3. 选择手动安装和自动安装，直接回车表示自动安装（回车得了）&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　4. 选择是否有程序需要扩充内存，可用空格键选择，Yes表示需要，</div><div>　　　　　　　　No不需要，按回车键即可。&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　5. 程序自动检测硬盘内是否安装了WINDOWS&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　6. 软驱中若有软盘则应将其取出，然后按回车键，电脑将重新起动</div><div>　　　　　　　　两次，不要中断，只需按回车键。&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　（其实很简单，一直按回车键就行了，呵呵）&nbsp;</div><div>&nbsp;</div><div>&mdash;&mdash;msd｜undelete&nbsp;</div><div>&nbsp;</div><div>　　msd　　　　 系统检测&nbsp;</div><div>&nbsp;</div><div>［适用场合］　　用于检查系统信息&nbsp;</div><div>&nbsp;</div><div>［用　　法］　　1. C:\&gt;msd　回车后可见到如下画面，在每个选项旁边加了注解，表</div><div>　　　　　　　　示该按钮的功用&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　2. 选择需查询的项目，比如选第一个Computer,将会弹出一个对话框</div><div>　　　　　　　　显示电脑的一些基本信息。你可以试试其他的选项，看看有什么用。&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　3. 按Alt+F键激活下拉菜单后, 选择Exit项退出。&nbsp;</div><div>&nbsp;</div><div>　undelete　　　恢复被删除的文件&nbsp;</div><div>&nbsp;</div><div>［适用场合］　　当不小心删错了文件时，它可以用得上。&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　DOS删除文件时，只是将文件从分配表中去除，在磁盘存储区内将文</div><div>　　　　　　　　件名的第一个字母删除，文件内容并未马上从磁盘中删除，所以能恢</div><div>　　　　　　　　复。&nbsp;</div><div>&nbsp;</div><div>［用　　法］　　undelete　　　　　　　恢复已删除的文件&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　undelete /all　　　恢复文件且不再询问是否恢复，　　　　　　</div><div>　　　　　　　　以#%&amp;-0123456789abcdefghijklmnopqrstuvwxyz的顺序为第一个</div><div>　　　　　　　　字母来恢复文件&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　undelete /list　　列可恢复的文件名&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　undelete /s 　　　可将undelete驻留内存，但几乎没人这样使用&nbsp;</div><div>&nbsp;</div><div>&mdash;&mdash;prompt|restore　&nbsp;</div><div>&nbsp;</div><div>　　prompt　　　设置提示符&nbsp;</div><div>&nbsp;</div><div>［适用场合］　　当你厌烦了c:\&gt;的提示符或者您想使您的提示符与众不同时，您可以</div><div>　　　　　　　　试一试，非常有趣的DOS命令，可以随时显示时间与日期。&nbsp;</div><div>&nbsp;</div><div>［用　　法］　　prompt $p$g 以当前目录名和&gt;号为提示符，这是最常用的提示符&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　prompt $t 表示时间　　　　　　prompt $d 表示日期&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　prompt $$ 表示$ 　　　　　　　prompt $q 表示=&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　prompt $v 表示当前版本　　　　prompt $l 表示&lt;&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　prompt $b 表示| 　　　　　　　prompt $h 表示退位符&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　prompt $e 表示Esc代表的字符 　prompt $_ 表示回车换行&nbsp;</div><div>&nbsp;</div><div>［例　　子］　　C:\DOS&gt;prompt wang$g 将wang&gt;作为提示符&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　WANG&gt;prompt $t$d$g 　使用时间、日期和&gt;号做为提示符&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　0:01:07.77Thu 08-29-1996&gt;prompt $p$g&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　C:\DOS&gt;&nbsp;</div><div>&nbsp;</div><div>　restore　　　恢复已备份的文件&nbsp;</div><div>&nbsp;</div><div>［建　　议］　　如果以前用backup做过文件备份，则当原文件损坏时可以用它来恢复</div><div>　　　　　　　　文件。&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　将用backup命令备份的磁盘中的文件恢复到另一磁盘中，备份磁盘中</div><div>　　　　　　　　应有backup.00X和control.00X这两条文件。&nbsp;</div><div>&nbsp;</div><div>［用　　法］　　restore [备份盘符] [目标盘符]&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　将备份盘上备份文件恢复到指定盘上&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　restore /s 　　　　将备份文件包括子目录都恢复到指定盘上&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　restore /p 　　　　让用户判断是否恢复文件&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　restore /b:日期　　恢复日期以前的文件&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　restore /a:日期　　恢复日期之后的文件&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　restore /l:时间　　恢复时间之前的文件&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　restore /e:时间　　恢复时间之后的文件&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　restore /m 　　　　只恢复上次备份后修改过的文件&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　restore /n 　　　　只恢复上次备份后已删 除的文件&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　restore /d 　　　　只显示要恢复的文件名&nbsp;</div><div>&nbsp;</div><div>［例　　子］　　C:\DOS&gt;restore a: c:&nbsp;</div><div>　　　　　　　　Insert backup diskette 01 in drive A:&nbsp;</div><div>　　　　　　　　Press any key to continue . . .&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　在A驱中放入第一张备份盘，按任意键即可，恢复完第一张后，按顺</div><div>　　　　　　　　序放入其它盘即可。&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　当您用上述命令不能正确恢复文件时请用：&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　C:\DOS&gt;restore a: c:\ /s&nbsp;</div><div>&nbsp;</div><div>&mdash;&mdash;time|set|smartdrv　　&nbsp;</div><div>&nbsp;</div><div>　　time　　　　显示及修改时间&nbsp;</div><div>&nbsp;</div><div>［适用场合］　　用于显示及修改时间，用法同date&nbsp;</div><div>&nbsp;</div><div>［例　　子］　　C:\DOS&gt;time&nbsp;</div><div>　　　　　　　　Current time is 12:15:26.04a&nbsp;</div><div>　　　　　　　　Enter new time: 11:20:20.00p&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　按时:分顺序输入时间，再加上下午(a/p)即可 直接按ENTER键可忽略</div><div>　　　　　　　　修改时间。&nbsp;</div><div>&nbsp;</div><div>　　set 　　　　设置环境变量&nbsp;</div><div>&nbsp;</div><div>［适用场合］　　设置声卡和路径等时用到&nbsp;</div><div>&nbsp;</div><div>［用　　法］　　set [环境变量]=[字符串] 　　&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　这条命令常常用在autoexec.bat中&nbsp;</div><div>&nbsp;</div><div>［例　　子］　　C:\&gt;set blaster=a220 i5 d1　　　　　设置声卡的参数&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　C:\&gt;set path=c:\dos　　　　　　　　　path c:\dos含义相同&nbsp;</div><div>&nbsp;</div><div>　smartdrv　　　设置磁盘加速器&nbsp;</div><div>&nbsp;</div><div>［建　　议］　　它可以提高硬盘访问速度，最好在autoexec.bat文件中加载吧。&nbsp;</div><div>&nbsp;</div><div>［用　　法］　　smartdrv /x&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　执行并驻留内存，开辟磁盘加速缓存区，并屏蔽所有驱动器缓存，是</div><div>　　　　　　　　较常用的方法（一般用这个命令就够了）&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　smartdrv /c 　　　　　　将缓存内的信息都写入硬盘&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　smartdrv /e: 数字 　　　设置一次移动的信息量&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　smartdrv /b: 数字 　　　设置预先读取的缓冲区大小&nbsp;</div><div>&nbsp;</div><div>&mdash;&mdash;append|debug|diskcomp　　&nbsp;</div><div>&nbsp;</div><div>　append　　　　设置非执行文件的路径&nbsp;</div><div>&nbsp;</div><div>［适用场合］　　当您无法在多个目录中寻找到自己输入的文稿时，可以试一试这个命</div><div>　　　　　　　　令，用法类似path。&nbsp;</div><div>&nbsp;</div><div>［用　　法］　　append [路径];[路径]&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>［例　　子］　　C:\&gt;append c:\test&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　设置寻找非可执行文件路径为c:\test如果该目录下有文件1.txt时，</div><div>　　　　　　　　在其它目录下调用1.txt找不到时，可自动寻找到c:\test目录。&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　D:\UCDOS&gt;edit 1.txt 可找到C:\test\1.txt文件&nbsp;</div><div>&nbsp;</div><div>　debug 　　　　程序调试命令&nbsp;</div><div>&nbsp;</div><div>［建　　议］　　如果你学过汇编语言，那你应该会使用debug，如果没学过，最好别</div><div>　　　　　　　　使用&nbsp;</div><div>&nbsp;</div><div>［用　　法］　　debug [文件名]&nbsp;</div><div>&nbsp;</div><div>　diskcomp　　　比较磁盘&nbsp;</div><div>&nbsp;</div><div>［适用场合］　　比较两张盘是否相同，没想到什么时候会用到，在比较用diskcopy拷</div><div>　　　　　　　　贝的两张盘，为什么不用diskcopy/v校验呢？&nbsp;</div><div>&nbsp;</div><div>［用　　法］　　diskcomp [盘符1] [盘符2] 比较盘1和盘2&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　diskcomp /1 只比较磁盘的第一面&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　diskcomp /8 只比较没磁道的前8个扇区&nbsp;</div><div>&nbsp;</div><div>［例　　子］　　C:\&gt;diskcomp a: a:&nbsp;</div><div>　　　　　　　　在同一软驱中比较两张盘&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　Insert FIRST diskette in drive A:&nbsp;</div><div>　　　　　　　　放入第一张盘&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　Press any key to continue . . .&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　Comparing 80 tracks 18 sectors per track, 2 side(s) 　　</div><div>　　　　　　　　Insert SECOND diskette in drive A:&nbsp;</div><div>　　　　　　　　放入第二张盘&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　Press any key to continue . . . Compare OK&nbsp;</div><div>　　　　　　　　比较未发现不同&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　Compare another diskette (Y/N) ?n&nbsp;</div><div>　　　　　　　　是否比较其它盘，选y继续比较，选n停止&nbsp;</div><div>&nbsp;</div><div>&mdash;&mdash;expand|fasthelp|fc　　&nbsp;</div><div>&nbsp;</div><div>　expand　　　　解压工具&nbsp;</div><div>&nbsp;</div><div>［适用场合］　　微软公司软件原始安装盘中有许多后缀以_结尾的压缩文件，可以&nbsp;</div><div>　　　　　　　　用它解压，解除您因为少数几个文件丢失造成的麻烦。&nbsp;</div><div>&nbsp;</div><div>［用　　法］　　expand [源文件名] [目的文件]&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>［例　　子］　　C:\&gt;expand a:vsafe.co_ c:\dos\vsafe.com&nbsp;</div><div>&nbsp;</div><div>　　　　　　　解压vsafe.co_为vsafe.com文件&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　Microsoft (R) File Expansion Utility Version 2.10 　　　</div><div>　　　　　　　　Copyright (C) Microsoft Corp 1990-1993. All rights 　　　</div><div>　　　　　　　　reserved.&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　Expanding a:vsafe.co_ to c:\dos\vsafe.com. a:vsafe.co_:&nbsp;</div><div>　　　　　　　　33046 bytes expanded to 62576 bytes, 89% increase.&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　C:\DOS&gt;&nbsp;</div><div>&nbsp;</div><div>　fasthelp　　　快速显示帮助信息&nbsp;</div><div>&nbsp;</div><div>［建　　议］　　可以看看所有的命令，对于单个的命令，还不如在命令名后加/?参数</div><div>　　　　　　　　方便&nbsp;</div><div>&nbsp;</div><div>［用　　法］　　fasthelp 　　　　　　列出所有DOS命令的用处&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　fasthelp [命令名]　　显示命令的用处，等价于 [命令名]/?&nbsp;</div><div>&nbsp;</div><div>　　　fc　　　　文件比较&nbsp;</div><div>&nbsp;</div><div>［建　　议］　　也许对于大多数人是永远不会用到它的&nbsp;</div><div>&nbsp;</div><div>［用　　法］　　fc [文件名1] [文件名2] 　　　　比较两文件的不同 　　　　　　</div><div>　　　　　　　　参数还有: a c l Lbn n t w nnnn&nbsp;</div><div>&nbsp;</div><div>［例　　子］　　C:\TEST&gt;fc a.bat b.bat&nbsp;</div><div>　　　　　　　　Comparing files A.BAT and B.BAT&nbsp;</div><div>　　　　　　　　***** A.BAT&nbsp;</div><div>　　　　　　　　choice /c:dme defrag,mem,end&nbsp;</div><div>　　　　　　　　if errorlevel 3 goto defrag&nbsp;</div><div>　　　　　　　　if errorlevel 2 goto mem&nbsp;</div><div>　　　　　　　　if errotlevel 1 goto end&nbsp;</div><div>　　　　　　　　***** B.BAT choice /c:dme defrag,mem,end&nbsp;</div><div>　　　　　　　　***** C:\TEST&gt;&nbsp;</div><div>&nbsp;</div><div>&mdash;&mdash;interlnk|intersvr|qbasic　　&nbsp;</div><div>&nbsp;</div><div>　interlnk　　　启动简易网客户机&nbsp;</div><div>&nbsp;</div><div>［适用场合］　　如果有两台电脑可以通过它和intersvr联成简易的网络，这是条很有</div><div>　　　　　　　　用的命令，但不常用&nbsp;</div><div>&nbsp;</div><div>［用　　法］　　 DOS新增支持网络的功能，&nbsp;</div><div>　　　　　　　　它可以使两台电脑通过并口线或串口线相联组成简易的网络&nbsp;</div><div>　　　　　　　　使用interlnk 必须在config.sys中增添一句：&nbsp;</div><div>　　　　　　　　device=c:\dos\interlnk&nbsp;</div><div>　　　　　　　　并口线的两头都应是25针公接头，针之间的连接如下图：对应&nbsp;</div><div>　　　　　　　　p2------------------------p15&nbsp;</div><div>　　　　　　　　p3------------------------p13&nbsp;</div><div>　　　　　　　　p4------------------------p12&nbsp;</div><div>　　　　　　　　p5------------------------p10 公接头指接头为带针的&nbsp;</div><div>　　　　　　　　p6------------------------p11 母接头指接头为带孔的&nbsp;</div><div>　　　　　　　　p15-----------------------p2&nbsp;</div><div>　　　　　　　　p13-----------------------p3&nbsp;</div><div>　　　　　　　　p12-----------------------p4&nbsp;</div><div>　　　　　　　　p10-----------------------p5&nbsp;</div><div>　　　　　　　　p11-----------------------p6&nbsp;</div><div>　　　　　　　　p25-----------------------p25 地线&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>［例　　子］　　C:\DOS\&gt;interlnk Port-LPT1&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　this Computer 　　　Other Computer&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　　(Client) 　　　　　　(Server)&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　　 ----------------------------------------&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　　　　 E: 　　equals 　　A:&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　　 　　F: 　　equals 　　C:&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　在客户机中E盘即为服务机的A盘，F盘为服务机的C盘&nbsp;</div><div>&nbsp;</div><div>　intersvr　　　启动简易网服务器&nbsp;</div><div>&nbsp;</div><div>［适用场合］　　使用它，电脑就成了服务器了（只限与DOS提供的简易网）&nbsp;</div><div>&nbsp;</div><div>［用　　法］　　intersvr　　　　　　　启动服务机&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　intersvr /lpt:1　　　启动服务机,用lpt1口作为数据传输口&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　intersvr /com:1　　　启动服务机,用com1口作为数据传输口&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　参数还有 x baud: b v rcopy （参见interlnk)&nbsp;</div><div>&nbsp;</div><div>［例　　子］　　C:\DOS&gt;intersvr&nbsp;</div><div>&nbsp;</div><div>　　qbasic　　　启动Basic集成环境&nbsp;</div><div>&nbsp;</div><div>［建　　议］　　也许对于大多数人是永远不会用到它的&nbsp;</div><div>&nbsp;</div><div>［用　　法］　　如果会qbasic语言，那么可以利用它编写自己的程序。edit.com必须</div><div>　　　　　　　　有它才可用。&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　qbasic　　　　　起动basic语言环境&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　qbasic/editor　以全屏方式编辑语言&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　参数还有： b g h mbf nohi run&nbsp;</div><div>&nbsp;</div><div>［例　　子］　　C:\DOS&gt;qbasic</div><div>&nbsp;</div><div>&mdash;&mdash;setver|share|subst　　&nbsp;</div><div>&nbsp;</div><div>　setver 　　 　设置版本&nbsp;</div><div>&nbsp;</div><div>［适用场合］　　当希望使用其它版本的dos命令时可以用它来欺骗电脑。在高版本 　</div><div>　　　　　　　　DOS中，某些旧版本程序需要DOS3.3时，可用setver来设置&nbsp;</div><div>&nbsp;</div><div>［用　　法］　　使用时一般在config.sys中加入 device=setver.exe&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　setver　　　　　　　　　　显示文件的版本&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　setver [文件名] n.nn 　　设置指定文件的版本号&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>［例　　子］　　C:\DOS&gt;setver&nbsp;</div><div>　　　　　　　　KERNEL.EXE 5.00&nbsp;</div><div>　　　　　　　　DOSOAD.SYS 5.00&nbsp;</div><div>　　　　　　　　EDLIN.EXE 5.00&nbsp;</div><div>　　　　　　　　BACKUP.EXE 5.00&nbsp;</div><div>　　　　　　　　ASSIGN.COM 5.00&nbsp;</div><div>　　　　　　　　EXE2BIN.EXE 5.00&nbsp;</div><div>　　　　　　　　JOIN.EXE 5.00&nbsp;</div><div>　　　　　　　　RECOVER.EXE 5.00&nbsp;</div><div>　　　　　　　　WINWORD.EXE 4.10&nbsp;</div><div>　　　　　　　　C:\&gt;&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　若程序AAA.exe必须在MS-DOS3.3下执行，则键入&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　C:\DOS&gt;setver aaa.exe 3.30&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　又如net5.exe仅在MS-DOS5.0下执行，则在config.sys中加入　　　</div><div>　　　　　　　　device=setver.exe后也可在Ms-DOS6.22下运行。&nbsp;</div><div>&nbsp;</div><div>　　share　　　　文件共享&nbsp;</div><div>&nbsp;</div><div>［建　　议］　　只有在软件声明必须要运行它时才用&nbsp;</div><div>&nbsp;</div><div>［用　　法］　　可在config.sys中加入 install=share.exe 也可直接运行 　　　</div><div>　　　　　　　　参数有 f l&nbsp;</div><div>&nbsp;</div><div>　　subst　　　　路径替换&nbsp;</div><div>&nbsp;</div><div>［建　　议］　　一个非常有趣的命令，如果经常用光碟软件，可能有用。&nbsp;</div><div>&nbsp;</div><div>［用　　法］　　subst 　　　　　　　　　　显示当前的替代路径&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　subst [盘符] [路径]　　　　　　　　　　　　　　　　　　　　</div><div>　　　　　　　　将指定的路径替代盘符，该路径将作为驱动器使用&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　subst /b　　　　　　　　　解除替代&nbsp;</div><div>&nbsp;</div><div>［例　　子］　　C:\DOS&gt;subst a: c:\temp 用c盘temp目录替代a盘&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　C:\&gt;subst a: /d　　　　　解除替代&nbsp;</div><div>&nbsp;</div><div>&mdash;&mdash;tree|unformat|vsafe　　&nbsp;</div><div>&nbsp;</div><div>　　tree 　　 　显示命令树结构&nbsp;</div><div>&nbsp;</div><div>［适用场合］　　查看所有的子目录&nbsp;</div><div>&nbsp;</div><div>［用　　法］　　tree [盘符]　　　　显示所有的子目录树&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　tree /f　　　　　　显示目录时同时显示文件名&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　tree /a　　　　　　以ASCII码显示目录树&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>［例　　子］　　C:\WINDOWS&gt;tree /a&nbsp;</div><div>&nbsp;</div><div>　unformat　　　恢复已被格式化的磁盘&nbsp;</div><div>&nbsp;</div><div>［建　　议］　　你把有重要信息的软盘格式化了?快用unformat&hellip;&hellip;什么?你用了　　</div><div>　　　　　　　　format /u，那死定了&nbsp;</div><div>&nbsp;</div><div>［用　　法］　　unformat [盘符] 　　　恢复指定的被格式化的磁盘&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　unformat /l 　　　　　显示unformat所找到的文件名&nbsp;</div><div>&nbsp;</div><div>［例　　子］　　C:\WINDOWS&gt;unformat a:&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>　　vsafe　　　　病毒防护程序&nbsp;</div><div>&nbsp;</div><div>［建　　议］　　把它装入内存可以随时检测出许多种病毒，是比较有用的。&nbsp;</div><div>&nbsp;</div><div>［用　　法］　　vsafe　　　　　　　　加载vsafe在内存中&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　vsafe /u 　　　　　　从内存中去除vsafe&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　vsafe/ne 　　　　　　将vsafe装入扩充内存&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　vsafe/nx 　　　　　　将vsafe装入扩展内存&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　参数还有 Ax Cx n d&nbsp;</div><div>&nbsp;</div><div>［例　　子］　　C:\&gt;vsafe&nbsp;</div><div>&nbsp;</div><div>&mdash;&mdash;ver|vol|ctty　　&nbsp;</div><div>&nbsp;</div><div>　　ver　　　 　显示DOS版本&nbsp;</div><div>&nbsp;</div><div>［例　　子］　　C:\&gt;ver&nbsp;</div><div>&nbsp;</div><div>　　　　　　　MS-DOS Version 6.22&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　C:\&gt;&nbsp;</div><div>&nbsp;</div><div>　　vol　　　　 显示指定的磁盘卷标号&nbsp;</div><div>&nbsp;</div><div>［例　　子］　　C:\&gt;vol&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　Volume in drive C is Wang&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　Volume Serial Number is 2116-1DD0&nbsp;</div><div>&nbsp;</div><div>　　　　　　　　C:\&gt;&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>　　ctty　　　　改变控制设备&nbsp;</div><div>&nbsp;</div><div>［建　　议］　　用来改变控制的输入输出设备，可以试试这条命令，不过恐怕不会有</div><div>　　　　　　　　什么作用，是DOS中最没用的命令之一&nbsp;</div><div>&nbsp;</div><div>［用　　法］　　ctty [设备名]　　　　设置控制台&nbsp;</div><div>&nbsp;</div><div>［例　　子］　　C:\&gt;ctty aux 　　　设置aux为输入输出设备。</div><div>&nbsp;</div><div>&mdash;&mdash;慎用命令　　　　&nbsp;</div><div>&nbsp;</div><div>　　介绍了这么多命令，是不是眼花缭乱了？学DOS的关键就是要多练习各种命令，但得给你提个醒，有些命令可得小心点，要不然到时就悔之晚矣。&nbsp;</div><div>&nbsp;</div><div>　del *.*　　　　删除当前目录所有文件&nbsp;</div><div>&nbsp;</div><div>［建　　议］　　在C盘根目录使用del *.*会使电脑找不到鼠标、光驱、不能使用　　</div><div>　　　　　　　　windows，甚至不能启动。 事实上在任何目录中使用这条命令，都需</div><div>　　　　　　　　要好好考虑。&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>deltree *.*　　 删除当前目录下所有目录与文件&nbsp;</div><div>&nbsp;</div><div>［建　　议］　　在C盘根目录中使用这条命令，那你必须要保证你的头脑是清醒的，</div><div>　　　　　　　　而且你保证这样做是有必要的，但我们认为在任何情况下都不应该这</div><div>　　　　　　　　样使用这条命令。 在任何目录下使用deltree *.*都会产生与　　　</div><div>　　　　　　　　del *.*一样甚至更坏的结果。慎之！慎之！&nbsp;</div><div>&nbsp;</div><div>format c:/u 　　格式化C盘&nbsp;</div><div>&nbsp;</div><div>［建　　议］　　除非你的硬盘被病毒感染得很深，或者有一个真正电脑专家告诉你应</div><div>　　　　　　　　该这样做，否则不要将C盘格式化，它会使你丢失一切信息，还需要</div><div>　　　　　　　　花几个小时来重新安装所有的软件。&nbsp;</div><div>&nbsp;</div><div>　　fdisk 　　　硬盘分区&nbsp;</div><div>&nbsp;</div><div>［建　　议］　　硬盘分区时，一定要让一个曾经使用过这条命令的人来帮助你使用，</div><div>　　　　　　　　否则你将失去所有信息，甚至连硬盘都不能使用了。&nbsp;</div><div>&nbsp;</div><div>　 recover　　　覆盖磁盘&nbsp;</div><div>&nbsp;</div><div>［建　　议］　　在DOS 6以后就不再有这条命令了，如果你使用的是老版本的DOS，劝</div><div>　　　　　　　　你在任何时候都不要使用它，它除了将你的硬盘所有的信息破坏掉就</div><div>　　　　　　　　没有其它作用了。&nbsp;</div>]]></description><category>大杂烩</category><comments>http://www.fenglongsheng.com/post/222.html#comment</comments><wfw:comment>http://www.fenglongsheng.com/</wfw:comment><wfw:commentRss>http://www.fenglongsheng.com/feed.asp?cmt=222</wfw:commentRss><trackback:ping>http://www.fenglongsheng.com/cmd.asp?act=tb&amp;id=222&amp;key=1d5d1ee6</trackback:ping></item><item><title>ASCII码</title><author>w3cnet@qq.com (光子时代)</author><link>http://www.fenglongsheng.com/post/221.html</link><pubDate>Mon, 13 Feb 2012 20:43:58 +0800</pubDate><guid>http://www.fenglongsheng.com/post/221.html</guid><description><![CDATA[<div align="center"><table width="468" align="center" bordercolor="#000000" border="1" cellspacing="0" cellpadding="5">    <tbody>        <tr>            <td>ASCII码</td>            <td>键盘</td>            <td>ASCII 码</td>            <td>键盘</td>            <td>ASCII 码</td>            <td>键盘</td>            <td>ASCII 码</td>            <td>键盘</td>        </tr>        <tr>            <td>27</td>            <td>ESC</td>            <td>32</td>            <td>SPACE</td>            <td>33</td>            <td>!</td>            <td>34</td>            <td>&quot;</td>        </tr>        <tr>            <td>35</td>            <td>#</td>            <td>36</td>            <td>$</td>            <td>37</td>            <td>%</td>            <td>38</td>            <td>&amp;</td>        </tr>        <tr>            <td>39</td>            <td>'</td>            <td>40</td>            <td>(</td>            <td>41</td>            <td>)</td>            <td>42</td>            <td>*</td>        </tr>        <tr>            <td>43</td>            <td>+</td>            <td>44</td>            <td>'</td>            <td>45</td>            <td>-</td>            <td>46</td>            <td>.</td>        </tr>        <tr>            <td>47</td>            <td>/</td>            <td>48</td>            <td>0</td>            <td>49</td>            <td>1</td>            <td>50</td>            <td>2</td>        </tr>        <tr>            <td>51</td>            <td>3</td>            <td>52</td>            <td>4</td>            <td>53</td>            <td>5</td>            <td>54</td>            <td>6</td>        </tr>        <tr>            <td>55</td>            <td>7</td>            <td>56</td>            <td>8</td>            <td>57</td>            <td>9</td>            <td>58</td>            <td>:</td>        </tr>        <tr>            <td>59</td>            <td>;</td>            <td>60</td>            <td>&lt;</td>            <td>61</td>            <td>=</td>            <td>62</td>            <td>&gt;</td>        </tr>        <tr>            <td>63</td>            <td>?</td>            <td>64</td>            <td>@</td>            <td>65</td>            <td>A</td>            <td>66</td>            <td>B</td>        </tr>        <tr>            <td>67</td>            <td>C</td>            <td>68</td>            <td>D</td>            <td>69</td>            <td>E</td>            <td>70</td>            <td>F</td>        </tr>        <tr>            <td>71</td>            <td>G</td>            <td>72</td>            <td>H</td>            <td>73</td>            <td>I</td>            <td>74</td>            <td>J</td>        </tr>        <tr>            <td>75</td>            <td>K</td>            <td>76</td>            <td>L</td>            <td>77</td>            <td>M</td>            <td>78</td>            <td>N</td>        </tr>        <tr>            <td>79</td>            <td>O</td>            <td>80</td>            <td>P</td>            <td>81</td>            <td>Q</td>            <td>82</td>            <td>R</td>        </tr>        <tr>            <td>83</td>            <td>S</td>            <td>84</td>            <td>T</td>            <td>85</td>            <td>U</td>            <td>86</td>            <td>V</td>        </tr>        <tr>            <td>87</td>            <td>W</td>            <td>88</td>            <td>X</td>            <td>89</td>            <td>Y</td>            <td>90</td>            <td>Z</td>        </tr>        <tr>            <td>91</td>            <td>[</td>            <td>92</td>            <td>\</td>            <td>93</td>            <td>]</td>            <td>94</td>            <td>^</td>        </tr>        <tr>            <td>95</td>            <td>_</td>            <td>96</td>            <td>`</td>            <td>97</td>            <td>a</td>            <td>98</td>            <td>b</td>        </tr>        <tr>            <td>99</td>            <td>c</td>            <td>100</td>            <td>d</td>            <td>101</td>            <td>e</td>            <td>102</td>            <td>f</td>        </tr>        <tr>            <td>103</td>            <td>g</td>            <td>104</td>            <td>h</td>            <td>105</td>            <td>i</td>            <td>106</td>            <td>j</td>        </tr>        <tr>            <td>107</td>            <td>k</td>            <td>108</td>            <td>l</td>            <td>109</td>            <td>m</td>            <td>110</td>            <td>n</td>        </tr>        <tr>            <td>111</td>            <td>o</td>            <td>112</td>            <td>p</td>            <td>113</td>            <td>q</td>            <td>114</td>            <td>r</td>        </tr>        <tr>            <td>115</td>            <td>s</td>            <td>116</td>            <td>t</td>            <td>117</td>            <td>u</td>            <td>118</td>            <td>v</td>        </tr>        <tr>            <td>119</td>            <td>w</td>            <td>120</td>            <td>x</td>            <td>121</td>            <td>y</td>            <td>122</td>            <td>z</td>        </tr>        <tr>            <td>123</td>            <td>{</td>            <td>124</td>            <td>|</td>            <td>125</td>            <td>}</td>            <td>126</td>            <td>~</td>        </tr>    </tbody></table></div>]]></description><category>大杂烩</category><comments>http://www.fenglongsheng.com/post/221.html#comment</comments><wfw:comment>http://www.fenglongsheng.com/</wfw:comment><wfw:commentRss>http://www.fenglongsheng.com/feed.asp?cmt=221</wfw:commentRss><trackback:ping>http://www.fenglongsheng.com/cmd.asp?act=tb&amp;id=221&amp;key=554f730b</trackback:ping></item><item><title>win快捷键</title><author>w3cnet@qq.com (光子时代)</author><link>http://www.fenglongsheng.com/post/220.html</link><pubDate>Mon, 13 Feb 2012 20:42:57 +0800</pubDate><guid>http://www.fenglongsheng.com/post/220.html</guid><description><![CDATA[<p>&nbsp;&nbsp; Win + D　 D = Desktop　(桌面)</p><div>　Win + E　 E = Explorer (资源管理器)</div><div>　Win + F　 F = Find　　 (查找)</div><div>　Win + R　 D = Run　　　(运行)</div><div>　WIN+ BREAK 显示&quot;系统属性&quot;对话框。</div><div>&nbsp; WIN+ M 最小化所有窗口。</div><div>　WIN+ Shift + M 还原最小化的窗口。</div><div>&nbsp; CTRL+WIN+ F 搜索计算机。</div><div>　WIN+ F1 显示 Windows 帮助。</div><div>&nbsp; WIN+ L 锁定您的计算机，或者切换用户。</div><div>&nbsp; WIN+ U 打开&quot;工具管理器&quot;。</div>]]></description><category>大杂烩</category><comments>http://www.fenglongsheng.com/post/220.html#comment</comments><wfw:comment>http://www.fenglongsheng.com/</wfw:comment><wfw:commentRss>http://www.fenglongsheng.com/feed.asp?cmt=220</wfw:commentRss><trackback:ping>http://www.fenglongsheng.com/cmd.asp?act=tb&amp;id=220&amp;key=d33f1afe</trackback:ping></item><item><title>非常详细的IFRAME的属性参考手册 </title><author>w3cnet@qq.com (光子时代)</author><link>http://www.fenglongsheng.com/post/219.html</link><pubDate>Mon, 13 Feb 2012 20:40:21 +0800</pubDate><guid>http://www.fenglongsheng.com/post/219.html</guid><description><![CDATA[<p>&nbsp;ALIGN align 设置或获取表格排列。&nbsp;</p><div>ALLOWTRANSPARENCY allowTransparency 设置或获取对象是否可为透明。&nbsp;</div><div>APPLICATION APPLICATION 表明对象的内容是否为 HTML 应用程序(HTA)，以便免除浏览器安全模式。&nbsp;</div><div>ATOMICSELECTION 指定元素及其内容是否可以一不可见单位统一选择。&nbsp;</div><div>BEGIN begin 设置或获取时间线在该元素上播放前的延迟时间。&nbsp;</div><div>BORDER border 设置或获取框架间的空间，包括 3D 边框。&nbsp;</div><div>canHaveChildren 获取表明对象是否可以包含子对象的值。&nbsp;</div><div>canHaveHTML 获取表明对象是否可以包含丰富的 HTML 标签的值。&nbsp;</div><div>CLASS className 设置或获取对象的类。&nbsp;</div><div>contentWindow 获取指定的 frame 或 iframe 的 window 对象。&nbsp;</div><div>DATAFLD dataFld 设置或获取由 dataSrc 属性指定的绑定到指定对象的给定数据源的字段。&nbsp;</div><div>DATASRC dataSrc 设置或获取用于数据绑定的数据源。&nbsp;</div><div>disabled 获取表明用户是否可与该对象交互的值。&nbsp;</div><div>END end 设置或获取表明元素结束时间的值，或者元素设置为重复的简单持续终止时间。&nbsp;</div><div>firstChild 获取对象的 childNodes 集合的第一个子对象的引用。&nbsp;</div><div>FRAMEBORDER frameBorder 设置或获取是否显示框架的边框。&nbsp;</div><div>hasMedia 获取一个表明元素是否为 HTML+TIME 媒体元素的 Boolean 值。&nbsp;</div><div>HEIGHT height 设置或获取对象的高度。&nbsp;</div><div>HIDEFOCUS hideFocus 设置或获取表明对象是否显式标明焦点的值。&nbsp;</div><div>HSPACE hspace 设置或获取对象的水平边距。&nbsp;</div><div>ID id 获取标识对象的字符串。&nbsp;</div><div>innerText 设置或获取位于对象起始和结束标签内的文本。&nbsp;</div><div>isContentEditable 获取表明用户是否可编辑对象内容的值。&nbsp;</div><div>isDisabled 获取表明用户是否可与该对象交互的值。&nbsp;</div><div>isMultiLine 获取表明对象的内容是包含一行还是多行的值。&nbsp;</div><div>isTextEdit 获取是否可使用该对象创建一个 TextRange 对象。&nbsp;</div><div>LANG lang 设置或获取要使用的语言。&nbsp;</div><div>LANGUAGE language 设置或获取当前脚本编写用的语言。&nbsp;</div><div>lastChild 获取该对象 childNodes 集合中最后一个子对象的引用。&nbsp;</div><div>longDesc 设置或获取对象长描述的统一资源标识符(URI)。&nbsp;</div><div>MARGINHEIGHT marginHeight 设置或获取显示框架中文本之前的上下边距高度。&nbsp;</div><div>MARGINWIDTH marginWidth 设置或获取显示框架中文本之前的左右边距宽度。&nbsp;</div><div>NAME name 设置或获取框架的名称。&nbsp;</div><div>nextSibling 获取对此对象的下一个兄弟对象的引用。&nbsp;</div><div>nodeName 获取特定结点类型的名称。&nbsp;</div><div>nodeType 获取所需结点的类型。&nbsp;</div><div>nodeValue 设置或获取结点的值。&nbsp;</div><div>offsetHeight 获取对象相对于版面或由父坐标 offsetParent 属性指定的父坐标的高度。&nbsp;</div><div>offsetLeft 获取对象相对于版面或由 offsetParent 属性指定的父坐标的计算左侧位置。&nbsp;</div><div>offsetParent 获取定义对象 offsetTop 和 offsetLeft 属性的容器对象的引用。&nbsp;</div><div>offsetTop 获取对象相对于版面或由 offsetTop 属性指定的父坐标的计算顶端位置。&nbsp;</div><div>offsetWidth 获取对象相对于版面或由父坐标 offsetParent 属性指定的父坐标的宽度。&nbsp;</div><div>onOffBehavior 获取表明指定的 Microsoft&amp;reg; DirectAnimation&amp;reg; 行为是否正在运行的对象。&nbsp;</div><div>outerHTML 设置或获取对象及其内容的 HTML 形式。&nbsp;</div><div>outerText 设置或获取对象的文本。&nbsp;</div><div>ownerDocument 设置或获取结点关联的 document 对象。&nbsp;</div><div>parentElement 获取对象层次中的父对象。&nbsp;</div><div>parentNode 获取文档层次中的父对象。&nbsp;</div><div>parentTextEdit 获取文档层次中可用于创建包含原始对象的 TextRange 的容器对象。&nbsp;</div><div>previousSibling 获取对此对象的上一个兄弟对象的引用。&nbsp;</div><div>readyState 获取对象的当前状态。&nbsp;</div><div>readyState 获取表明对象当前状态的值。&nbsp;</div><div>recordNumber 获取数据集中生成对象的原始记录。&nbsp;</div><div>scopeName 获取为该元素定义的命名空间。&nbsp;</div><div>SCROLLING scrolling 设置或获取框架是否可被滚动。&nbsp;</div><div>SECURITY SECURITY 获取表明 frame 或 iframe 的源文件是否应用了特定的安全限制的值。&nbsp;</div><div>sourceIndex 获取对象在源序中的依次位置，即对象出现在 document 的 all 集合中的顺序。&nbsp;</div><div>SRC src 设置或获取要由对象装入的 URL。&nbsp;</div><div>STYLE 为该设置元素设置内嵌样式。&nbsp;</div><div>SYNCMASTER syncMaster 设置或获取时间容器是否必须在此元素上同步回放。&nbsp;</div><div>SYSTEMBITRATE 获取系统中大约可用带宽的 bps。&nbsp;</div><div>SYSTEMCAPTION 表明是否要显示文本来代替演示的的音频部分。&nbsp;</div><div>SYSTEMLANGUAGE 表明是否在用户计算机上的选项设置中选中了给定语言。&nbsp;</div><div>SYSTEMOVERDUBORSUBTITLE 指定针对那些正在观看演示但对被播放的音频所使用的语言并不熟悉的用户来说是否要渲染配音或字幕。&nbsp;</div><div>TABINDEX tabIndex 设置或获取定义对象的 Tab 顺序的索引。&nbsp;</div><div>tagName 获取对象的标签名称。&nbsp;</div><div>tagUrn 设置或获取在命名空间声明中指定的统一资源名称(URN)。&nbsp;</div><div>TIMECONTAINER timeContainer 设置或获取与元素关联的时间线类型。&nbsp;</div><div>TITLE title 设置或获取对象的咨询信息(工具提示)。&nbsp;</div><div>uniqueID 获取为对象自动生成的唯一标识符。&nbsp;</div><div>UNSELECTABLE 指定该元素不可被选中。&nbsp;</div><div>VSPACE vspace 设置或获取对象的垂直边距。&nbsp;</div><div>WIDTH width 设置或获取对象的宽度。&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>标签属性/属性</div><div>&nbsp;</div><div>行为</div><div>&nbsp;</div><div>行为 描述&nbsp;</div><div>clientCaps 提供关于 Internet Explorer 支持的特性的信息，以及提供即用即装的方法。&nbsp;</div><div>download 下载文件并在下载完成后通知一个指定的回调函数。&nbsp;</div><div>homePage 包含关于用户主页的信息。&nbsp;</div><div>time 为 HTML 元素提供一个活动的时间线。&nbsp;</div><div>time2 为 HTML 元素或一组元素提供一个活动的时间线。&nbsp;</div><div>&nbsp;</div><div>集合</div><div>&nbsp;</div><div>集合 描述&nbsp;</div><div>all 返回对象所包含的元素集合的引用。&nbsp;</div><div>attributes 获取对象标签属性的集合。&nbsp;</div><div>behaviorUrns 返回标识附加到该元素行为的统一资源名称(URN)字符串的集合。&nbsp;</div><div>childNodes 获取作为指定对象直接后代的 HTML 元素和 TextNode 对象的集合。&nbsp;</div><div>children 获取作为对象直接后代的 DHTML 对象的集合。&nbsp;</div><div>&nbsp;</div><div>事件</div><div>&nbsp;</div><div>事件 描述&nbsp;</div><div>onactivate 当对象设置为活动元素时触发。&nbsp;</div><div>onafterupdate 当成功更新数据源对象中的关联对象后在数据绑定对象上触发。&nbsp;</div><div>onbeforedeactivate 在 activeElement 从当前对象变为父文档其它对象之前立即触发。&nbsp;</div><div>onbeforeupdate 当成功更新数据源对象中的关联对象前在数据绑定对象上触发。&nbsp;</div><div>onblur 在对象失去输入焦点时触发。&nbsp;</div><div>oncontrolselect 当用户将要对该对象制作一个控件选中区时触发。&nbsp;</div><div>ondeactivate 当 activeElement 从当前对象变为父文档其它对象时触发。&nbsp;</div><div>onerrorupdate 更新数据源对象中的关联数据出错时在数据绑定对象上触发。&nbsp;</div><div>onfocus 当对象获得焦点时触发。&nbsp;</div><div>onload 在浏览器完成对象的装载后立即触发。&nbsp;</div><div>onmove 当对象移动时触发。&nbsp;</div><div>onmoveend 当对象停止移动时触发。&nbsp;</div><div>onmovestart 当对象开始移动时触发。&nbsp;</div><div>onreadystatechange 当对象状态变更时触发。&nbsp;</div><div>onresizeend 当用户更改完控件选中区中对象的尺寸时触发。&nbsp;</div><div>onresizestart 当用户开始更改控件选中区中对象的尺寸时触发。&nbsp;</div><div>ontimeerror 当特定时间错误发生时无条件触发，通常由将属性设置为无效值导致。&nbsp;</div><div>&nbsp;</div><div>滤镜</div><div>&nbsp;</div><div>滤镜属性 描述&nbsp;</div><div>Alpha 调整对象内容的不透明度。&nbsp;</div><div>AlphaImageLoader 在对象的边界和对象背景到内容之间显示图像，可选剪裁或缩放图像大小。当装入便携网络图像(PNG)时，从 0 到 100% 的 透明度都是支持的。&nbsp;</div><div>Barn 以开门或关门的运动方式显示对象的新内容。&nbsp;</div><div>BasicImage 调整对象内容的颜色处理、图像旋转或不透明度。&nbsp;</div><div>BlendTrans 以渐隐原始内容的形式显示对象的新内容。&nbsp;</div><div>Blinds 以打开或关闭盲点的运动方式显示对象的新内容。&nbsp;</div><div>Blur 模糊对象的内容以便使其看起来失去焦点。&nbsp;</div><div>CheckerBoard 以揭开覆盖在原始内容上的棋盘的形式显示对象的新内容。&nbsp;</div><div>Chroma 将对象内容的指定颜色显示为透明。&nbsp;</div><div>Compositor 以新旧内容逻辑颜色组合的形式显示对象的新内容。每个版本的颜色和 alpha 值都会被计算用来决定输出图像的最终颜色。&nbsp;</div><div>DropShadow 创建对象内容的实体阴影，偏移量位于指定方向。这将使得内容看起来是浮动的因此会产生阴影。&nbsp;</div><div>Emboss 使用灰度值对对象以浮雕纹理显示。&nbsp;</div><div>Engrave 使用灰度值对对象以雕刻纹理显示。&nbsp;</div><div>Fade 以渐隐原始内容的形式显示对象的新内容。&nbsp;</div><div>FlipH 以沿水平方向翻转的形式显示对象内容。&nbsp;</div><div>FlipV 以沿垂直方向翻转的形式显示对象内容。&nbsp;</div><div>Glow 在对象边缘外侧添加光晕以便使其看起来像发光的样子。&nbsp;</div><div>Gradient 在对象的背景和内容之间显示一个渐变色彩的表面。&nbsp;</div><div>GradientWipe 以在原有内容上覆盖渐变带的形式显示对象的新内容。&nbsp;</div><div>Gray 以灰度显示对象内容。&nbsp;</div><div>ICMFilter 根据图像颜色管理(ICM)配置文件转换对象的彩色内容。这将允许指定内容的显示效果得以改善，或者在打印机或监视器等硬件设备上模拟显示。&nbsp;</div><div>Inset 以对角线方向显示对象的新内容。&nbsp;</div><div>Invert 反转对象内容的色调、饱和度和亮度。&nbsp;</div><div>Iris 以彩虹效果显示对象的新内容，这与照相机光圈打开相似。&nbsp;</div><div>Light 在对象的内容上创建灯光效果。&nbsp;</div><div>MaskFilter 将对象内容的透明像素显示为彩色遮罩，将非透明像素显示为透明。&nbsp;</div><div>Matrix 使用矩阵变换缩放、旋转或显现对象的内容。&nbsp;</div><div>MotionBlur 以运动模糊的效果显示对象内容。&nbsp;</div><div>Pixelate 将对象的内容显示为彩色方块，其颜色取决于该方块所替代区域的平均颜色值。此滤镜显示可用于切换。&nbsp;</div><div>RadialWipe 以辐射状擦除的形式显现对象的新内容。&nbsp;</div><div>RandomBars 以随机像素线爆炸的形式显现对象的新内容。&nbsp;</div><div>RandomDissolve 以随机像素爆炸的形式显现对象的新内容。&nbsp;</div><div>Redirect 目前还不支持。&nbsp;</div><div>RevealTrans 使用 24 种预先定义的切换效果显现对象的新内容。&nbsp;</div><div>Shadow 创建对象内容的实体阴影，偏移量位于指定方向。这将创建阴影效果。&nbsp;</div><div>Slide 以图像滑行的形式显现对象的新内容。&nbsp;</div><div>Spiral 以螺旋运动的形式显现对象的新内容。&nbsp;</div><div>Stretch 以拉伸覆盖原始内容的形式显现对象的新内容。有一个选项类似立方体从一个表面转到另外一个表面。&nbsp;</div><div>Strips 以条形覆盖的形式显现对象的原始内容，好像有一把锯将原始内容锯开。&nbsp;</div><div>Wave 在对象的内容上执行垂直方向的正弦波扭曲。&nbsp;</div><div>Wheel 以旋转运动的形式显现对象的新内容，好像轮子滚过原始内容。&nbsp;</div><div>Xray 更改对象内容的颜色深度将其以黑白显示。&nbsp;</div><div>Zigzag 在对象上将对象的新内容进行来回移动以便覆盖原始内容。&nbsp;</div><div>&nbsp;</div><div>方法</div><div>&nbsp;</div><div>方法 描述&nbsp;</div><div>addBehavior 给元素附加一个行为。&nbsp;</div><div>appendChild 给对象追加一个子元素。&nbsp;</div><div>applyElement 使得元素成为其它元素的子元素或父元素。&nbsp;</div><div>attachEvent 将指定函数绑定到事件，以便每当该事件在对象上触发时都调用该函数。&nbsp;</div><div>blur 使元素失去焦点并触发 onblur 事件。&nbsp;</div><div>clearAttributes 从对象中删除全部标签属性和值。&nbsp;</div><div>cloneNode 从文档层次中复制对对象的引用。&nbsp;</div><div>componentFromPoint 通过特定事件返回对象在指定坐标下的位置。&nbsp;</div><div>contains 检查对象中是否包含给定元素。&nbsp;</div><div>detachEvent 从事件中取消指定函数的绑定，这样当事件触发时函数就不会收到通知了。&nbsp;</div><div>dragDrop 初始化拖曳事件。&nbsp;</div><div>fireEvent 触发对象的指定事件。&nbsp;</div><div>focus 使得元素得到焦点并执行由 onfocus 事件指定的代码。&nbsp;</div><div>getAdjacentText 返回邻接文本字符串。&nbsp;</div><div>getAttribute 获取指定标签属性的值。&nbsp;</div><div>getAttributeNode 获取由 attribute.name 属性引用的 attribute 对象。&nbsp;</div><div>getElementsByTagName 获取基于指定元素名称的对象集合。&nbsp;</div><div>getExpression 获取给定属性的表达式。&nbsp;</div><div>hasChildNodes 返回表明对象是否有子对象的值。&nbsp;</div><div>insertAdjacentElement 在指定位置插入元素。&nbsp;</div><div>insertAdjacentHTML 在指定位置的元素中插入给定的 HTML 文本。&nbsp;</div><div>insertAdjacentText 在指定位置插入给定的文本。&nbsp;</div><div>insertBefore 在文档层次中插入元素作为父对象的子结点。&nbsp;</div><div>mergeAttributes 复制所有读/写标签属性到指定元素。&nbsp;</div><div>normalize 合并邻接 TextNode 对象以便生成一个常规的文档对象模型。&nbsp;</div><div>removeAttribute 删除对象的给定标签属性。&nbsp;</div><div>removeAttributeNode 从对象中删除删除 attribute 对象。&nbsp;</div><div>removeBehavior 分离元素的行为。&nbsp;</div><div>removeChild 从元素上删除子结点。&nbsp;</div><div>removeExpression 从指定属性中删除表达式。&nbsp;</div><div>removeNode 从文档层次中删除对象。&nbsp;</div><div>replaceAdjacentText 替换元素的邻接文本。&nbsp;</div><div>replaceChild 用新的子元素替换已有的子元素。&nbsp;</div><div>replaceNode 用其它元素替换对象。&nbsp;</div><div>scrollIntoView 将对象滚动到可见范围内，将其排列到窗口顶部或底部。&nbsp;</div><div>setActive 设置对象为当前对象而不将对象置为焦点。&nbsp;</div><div>setAttribute 设置指定标签属性的值。&nbsp;</div><div>setAttributeNode 设置 attribute 对象为对象的一部分。&nbsp;</div><div>setExpression 设置指定对象的表达式。&nbsp;</div><div>swapNode 交换文档层次中两个对象的位置。&nbsp;</div><div>&nbsp;</div><div>对象</div><div>&nbsp;</div><div>对象 描述&nbsp;</div><div>runtimeStyle 代表了居于全局样式表、内嵌样式和 HTML 标签属性指定的格式和样式之上的对象的格式和样式。&nbsp;</div><div>style 代表了给定元素所有可能的内嵌样式的当前设置。&nbsp;</div><div>&nbsp;</div><div>样式</div><div>&nbsp;</div><div>样式标签属性 样式属性 描述&nbsp;</div><div>ACCELERATOR accelerator 设置或获取表明对象是否包含快捷键的字符串。&nbsp;</div><div>background-attachment backgroundAttachment 设置或获取背景图像如何附加到文档内的对象中。&nbsp;</div><div>background-color backgroundColor 设置或获取对象内容后的颜色。&nbsp;</div><div>background-position-x backgroundPositionX 设置或获取 backgroundPosition 属性的 x 坐标。&nbsp;</div><div>background-position-y backgroundPositionY 设置或获取 backgroundPosition 属性的 y 坐标。&nbsp;</div><div>behavior behavior 设置或获取 DHTML 行为的位置。&nbsp;</div><div>border-bottom borderBottom 设置或获取对象下边框的属性。&nbsp;</div><div>border-bottom-color borderBottomColor 设置或获取对象下边框的颜色。&nbsp;</div><div>border-bottom-style borderBottomStyle 设置或获取对象下边框的样式。&nbsp;</div><div>border-bottom-width borderBottomWidth 设置或获取对象下边框的宽度。&nbsp;</div><div>border-color borderColor 设置或获取对象的边框颜色。&nbsp;</div><div>border-left borderLeft 设置或获取对象左边框的属性。&nbsp;</div><div>border-left-color borderLeftColor 设置或获取对象左边框的颜色。&nbsp;</div><div>border-left-style borderLeftStyle 设置或获取对象左边框的样式。&nbsp;</div><div>border-left-width borderLeftWidth 设置或获取对象左边框的宽度。&nbsp;</div><div>border-right borderRight 设置或获取对象右边框的属性。&nbsp;</div><div>border-right-color borderRightColor 设置或获取对象右边框的颜色。&nbsp;</div><div>border-right-style borderRightStyle 设置或获取对象右边框的样式。&nbsp;</div><div>border-right-width borderRightWidth 设置或获取对象右边框的宽度。&nbsp;</div><div>border-style borderStyle 设置或获取对象上下左右边框的样式。&nbsp;</div><div>border-top borderTop 设置或获取对象上边框的属性。&nbsp;</div><div>border-top-color borderTopColor 设置或获取对象上边框的颜色。&nbsp;</div><div>border-top-style borderTopStyle 设置或获取对象上边框的样式。&nbsp;</div><div>border-top-width borderTopWidth 设置或获取对象上边框的宽度。&nbsp;</div><div>border-width borderWidth 设置或获取对象上下左右边框的宽度。&nbsp;</div><div>bottom bottom 设置或获取对象相对于文档层次中下个定位对象的底部的位置。&nbsp;</div><div>clear clear 设置或获取对象是否允许在其左侧、右侧或两边放置浮动对象，以防下段文本显示在浮动对象上。&nbsp;</div><div>clip clip 设置或获取定位对象的哪个部分可见。&nbsp;</div><div>cursor cursor 设置或获取当鼠标指针指向对象时所使用的鼠标指针。&nbsp;</div><div>display display 设置或获取对象是否要渲染。&nbsp;</div><div>filter filter 设置或获取应用于对象的滤镜或滤镜集合。&nbsp;</div><div>height height 设置或获取对象的高度。&nbsp;</div><div>layout-grid layoutGrid 设置或获取指定文本字符版面的组合文档格线属性。&nbsp;</div><div>layout-grid-mode layoutGridMode 设置或获取文本布局网格是否使用二维。&nbsp;</div><div>left left 设置或获取对象相对于文档层次中下个定位对象的左边界的位置。&nbsp;</div><div>margin margin 设置或获取对象的上下左右边距。&nbsp;</div><div>margin-bottom marginBottom 设置或获取对象的下边距宽度。&nbsp;</div><div>margin-left marginLeft 设置或获取对象的左边距宽度。&nbsp;</div><div>margin-right marginRight 设置或获取对象的右边距宽度。&nbsp;</div><div>margin-top marginTop 设置或获取对象的上边距宽度。&nbsp;</div><div>overflow-x overflowX 设置或获取当内容超出对象宽度时如何管理对象内容。&nbsp;</div><div>overflow-y overflowY 设置或获取当内容超出对象高度时如何管理对象内容。&nbsp;</div><div>pixelBottom 设置或获取对象的下方位置。&nbsp;</div><div>pixelHeight 设置或获取对象的高度。&nbsp;</div><div>pixelLeft 设置或获取对象的左侧位置。&nbsp;</div><div>pixelRight 设置或获取对象的右侧位置。&nbsp;</div><div>pixelTop 设置或获取对象的上方位置。&nbsp;</div><div>pixelWidth 设置或获取对象的宽度。&nbsp;</div><div>posBottom 设置或获取以 bottom 标签属性指定的单位的对象下方位置。&nbsp;</div><div>posHeight 设置或获取以 height 标签属性指定的单位的对象高度。&nbsp;</div><div>position position 设置或获取对象所使用的定位方式。&nbsp;</div><div>posLeft 设置或获取以 left 标签属性指定的单位的对象左侧位置。&nbsp;</div><div>posRight 设置或获取以 right 标签属性指定的单位的对象右侧位置。&nbsp;</div><div>posTop 设置或获取以 top 标签属性指定的单位的对象上方位置。&nbsp;</div><div>posWidth 设置或获取以 width 标签属性指定的单位的对象宽度。&nbsp;</div><div>right right 设置或获取对象相对于文档层次中下个已定位的对象的右边界的位置。&nbsp;</div><div>float styleFloat 设置或获取文本要绕排到对象的哪一侧。&nbsp;</div><div>text-autospace textAutospace 设置或获取自动留空和文本的窄空间宽度调整。&nbsp;</div><div>top top 设置或获取对象相对于文档层次中下个定位对象的上边界的位置。&nbsp;</div><div>visibility visibility 设置或获取对象的内容是否显示。&nbsp;</div><div>z-index zIndex 设置或获取定位对象的堆叠次序。&nbsp;</div><div>zoom zoom 设置或获取对象的放大比例。&nbsp;</div><div>&nbsp;</div><div>注释</div><div>&nbsp;</div><div>IFRAME 元素也就是文档中的文档，或者好像浮动的框架(FRAME)。frames 集合提供了对 IFRAME 内容的访问。请使用 frames 集合读写 IFRAME 内包含的元素。例如，如果要访问 iframe 内 body 对象的 backgroundColor 样式，语法应为:</div><div>&nbsp;</div><div>sColor = document.frames(&quot;sFrameName&quot;).document.body.style.backgroundColor;</div><div>&nbsp;</div><div>通过 iframe 对象所在页面的对象模型，你可以访问 iframe 对象的属性，但不能访问其内容。例如，访问 iframe 对象的 border 样式的语法应为:</div><div>&nbsp;</div><div>sBorderValue = document.all.oFrame.style.border;</div><div>&nbsp;</div><div>注意 iframe 的属性必须使用前缀 document.all 访问，例如 document.all.iframeId.marginWidth。</div><div>Internet Explorer 5.5 支持浮动框架的内容透明。如果想要为浮动框架定义透明内容，则必须满足下列条件。&nbsp;</div><div>&nbsp;</div><div>与 IFRAME 元素一起使用的 ALLOWTRANSPARENCY 标签属性必须设置为 true。&nbsp;</div><div>在 IFRAME 内容源文档，background-color 或 BODY 元素的 BGCOLOR 标签属性必须设置为 transparent。&nbsp;</div><div>参看使用透明的浮动框架可以获得关于透明浮动框架更多的信息。</div><div>&nbsp;</div><div>此元素在 Microsoft&amp;reg; Internet Explorer 4.0 的 HTML 和脚本中可用。</div><div>&nbsp;</div><div>此元素是一个块元素。</div><div>&nbsp;</div><div>此元素需要关闭标签。</div><div>&nbsp;</div><div>示例</div><div>&nbsp;</div><div>下面的例子使用了 IFRAME 元素创建了包含页面 sample.htm 的框架。</div><div>&nbsp;</div><div>&lt;IFRAME ID=IFrame1 FRAMEBORDER=0 SCROLLING=NO SRC=&quot;sample.htm&quot;&gt;&lt;/IFRAME&gt; &nbsp;</div>]]></description><category>HTML</category><comments>http://www.fenglongsheng.com/post/219.html#comment</comments><wfw:comment>http://www.fenglongsheng.com/</wfw:comment><wfw:commentRss>http://www.fenglongsheng.com/feed.asp?cmt=219</wfw:commentRss><trackback:ping>http://www.fenglongsheng.com/cmd.asp?act=tb&amp;id=219&amp;key=73458f48</trackback:ping></item><item><title>param里参数的详解</title><author>w3cnet@qq.com (光子时代)</author><link>http://www.fenglongsheng.com/post/218.html</link><pubDate>Mon, 13 Feb 2012 20:29:48 +0800</pubDate><guid>http://www.fenglongsheng.com/post/218.html</guid><description><![CDATA[<p>&nbsp;</p><div>&nbsp;</div><div>&lt;object classid=&quot;clsid27CDB6E-AE6D-11cf-96B8-444553540000&quot; codebase=&quot;http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0&quot; width=&quot;580&quot; height=&quot;110&quot;&gt;</div><div>&lt;param name=&quot;_cx&quot; value=&quot;10372&quot;&gt;</div><div>&lt;param name=&quot;_cy&quot; value=&quot;2355&quot;&gt;</div><div>&lt;param name=&quot;FlashVars&quot; value=&quot;-1&quot;&gt;</div><div>&lt;param name=&quot;Movie&quot; value=&quot;swf.swf&quot;&gt;</div><div>&lt;param name=&quot;Src&quot; value=&quot;1.swf&quot;&gt;</div><div>&lt;param name=&quot;WMode&quot; value=&quot;Transparent&quot;&gt;</div><div>&lt;param name=&quot;Play&quot; value=&quot;-1&quot;&gt;</div><div>&lt;param name=&quot;Loop&quot; value=&quot;-1&quot;&gt;</div><div>&lt;param name=&quot;Quality&quot; value=&quot;High&quot;&gt;</div><div>&lt;param name=&quot;SAlign&quot; value&gt;</div><div>&lt;param name=&quot;Menu&quot; value=&quot;0&quot;&gt;</div><div>&lt;param name=&quot;Base&quot; value&gt;</div><div>&lt;param name=&quot;AllowScriptAccess&quot; value=&quot;always&quot;&gt;</div><div>&lt;param name=&quot;Scale&quot; value=&quot;ShowAll&quot;&gt;</div><div>&lt;param name=&quot;DeviceFont&quot; value=&quot;0&quot;&gt;</div><div>&lt;param name=&quot;EmbedMovie&quot; value=&quot;0&quot;&gt;</div><div>&lt;param name=&quot;BGColor&quot; value&gt;</div><div>&lt;param name=&quot;SWRemote&quot; value&gt;</div><div>&lt;embed src=&quot;1.swf&quot; width=&quot;580&quot; height=&quot;110&quot; quality=&quot;high&quot; pluginspage=&quot;http://www.macromedia.com/go/getflashplayer&quot; type=&quot;application/x-shockwave-flash&quot; wmode=&quot;transparent&quot; menu=&quot;false&quot;&gt;&lt;/embed&gt;</div><div>&lt;/object&gt;</div><div>&nbsp;</div><div>&nbsp;</div><div>-------------------------------------------------------------------------------------------------------------------------------</div><div>参数和属性</div><div>&nbsp;</div><div>下列标记属性和参数描述了由&ldquo;发布&rdquo;命令创建的 HTML 代码。在编写自己的用于显示 Flash 内容的 HTML 时，可以参考此列表。除非特别说明，否则所有条目都同时适用于 object 标记和 embed 标记。可选条目也在此列出。Internet Explorer 可以识别用于 object 标记的参数，而 Netscape 则可以识别用于 embed 标记的参数。属性既可用于 object 标记，也可用于 embed 标记。当自定义模板时，可以用此处列出的模板变量替代相应的值。请参阅自定义 HTML 发布模板。</div><div>&nbsp;</div><div>注意：此部分中列出的属性和参数特意以小写字母显示，以符合 XHTML 标准。</div><div>&nbsp;</div><div>devicefont 属性/参数</div><div>&nbsp;</div><div>值: true | false</div><div>模板变量：$DE</div><div>说明:</div><div>（可选）对于未选定&ldquo;设备字体&rdquo;选项的静态文本对象，指定是否仍使用设备字体进行绘制（如果操作系统提供了所需字体）。</div><div>&nbsp;</div><div>src 属性</div><div>&nbsp;</div><div>值: movieName.swf</div><div>模板变量：$MO</div><div>说明 : 指定要加载的 SWF 文件的名称。仅适用于 embed。&nbsp;</div><div>&nbsp;</div><div>movie 参数</div><div>&nbsp;</div><div>值: movieName.swf</div><div>模板变量：$MO</div><div>说明: 指定要加载的 SWF 文件的名称。仅适用于 object。</div><div>&nbsp;</div><div>classid 属性</div><div>&nbsp;</div><div>值: clsid:D27cdb6e-ae6d-11cf-96b8-444553540000</div><div>说明: 标识浏览器的 ActiveX 控件。输入的值必须与上面的显示完全一致。仅适用于 object。</div><div>&nbsp;</div><div>width 属性</div><div>&nbsp;</div><div>值: n 或 n%</div><div>模板变量：$WI</div><div>说明:以像素值或浏览器窗口的百分比值来指定应用程序的宽度。</div><div>&nbsp;</div><div>height 属性</div><div>&nbsp;</div><div>值: n 或 n%</div><div>模板变量：$HE</div><div>说明: 以像素值或浏览器窗口的百分比值来指定应用程序的高度。&nbsp;</div><div>&nbsp;</div><div>注意：因为 Flash 应用程序是可缩放的，所以只要高宽比保持不变，不论以任何尺寸播放，它们的品质都不会降低。（例如，以下尺寸的高宽比都是 4:3：640 x 480 像素、320 x 240 像素和 240 x 180 像素。）</div><div>&nbsp;</div><div>codebase 属性</div><div>&nbsp;</div><div>值: active.macromedia.com/flash7/cabs/swflash.cab#version=7,0,0,0</div><div>&nbsp;</div><div>说明: 标识 Flash Player ActiveX 控件的位置，以便在尚未安装该控件时，浏览器可以自动下载它。输入的值必须与上面的显示完全一致。仅适用于 object。</div><div>&nbsp;</div><div>pluginspage 属性</div><div>&nbsp;</div><div>值: www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash</div><div>说明: 标识 Flash Player 插件的位置，以便在尚未安装该插件时，用户可以下载它。输入的值必须与上面的显示完全一致。仅适用于 embed 。</div><div>&nbsp;</div><div>swliveconnect 属性</div><div>&nbsp;</div><div>值: true | false</div><div>说明: （可选）指定第一次加载 Flash Player 时浏览器是否应启动 Java。如果忽略此属性，默认值为 false。如果在同一页面上同时使用 JavaScript 和 Flash，Java 必须处于运行状态，FSCommand() 函数才能起作用。但是，如果您运行 JavaScript 只是为了检测浏览器或用于其他与 fscommand() 动作无关的目的，则可以通过将 SWLIVECONNECT 设置为 false，从而防止 Java 启动。当没有将 JavaScript 和 Flash 一起使用时，也可以通过将 SWLIVECONNECT 属性明确设置为 true，强制 Java 启动。启动 Java 会显著增加启动 SWF 文件所需的时间，因此，只有在必要时才应将此标记设置为 true。仅适用于 embed。</div><div>&nbsp;</div><div>使用 fscommand() 动作可从独立的放映文件中启动 Java。</div><div>&nbsp;</div><div>play 属性/参数</div><div>&nbsp;</div><div>值: true | false</div><div>模板变量：$PL</div><div>说明:（可选）指定应用程序是否在浏览器中加载时就开始播放。如果您的 Flash 应用程序是交互式的，则可以让用户通过单击按钮或执行某些其他任务来开始播放。在这种情况下，将 play 属性设置为 false 可禁止应用程序自动开始播放。如果忽略此属性，默认值为 true。</div><div>&nbsp;</div><div>loop 属性/参数</div><div>&nbsp;</div><div>值: true | false</div><div>模板变量：$LO</div><div>说明: （可选）指定 Flash 内容在它到达最后一帧后是无限制重复播放还是停止。如果忽略此属性，默认值为 true。</div><div>&nbsp;</div><div>quality 属性/参数</div><div>&nbsp;</div><div>值: low | medium | high | autolow | autohigh | best</div><div>模板变量：$QU</div><div>说明: （可选）指定在应用程序回放期间使用的消除锯齿级别。因为消除锯齿需要更快的处理器先对 SWF 文件的每一帧进行平滑处理，然后再将它们呈现到观众屏幕上，所以需要根据要优化速度还是优化外观来选择一个值：</div><div>&nbsp;</div><div>&ldquo;Low&rdquo;使回放速度优先于外观，而且从不使用消除锯齿功能。</div><div>&nbsp;</div><div>&ldquo;Autolow&rdquo;优先考虑速度，但是也会尽可能改善外观。回放开始时，消除锯齿功能处于关闭状态。如果 Flash Player 检测到处理器可以处理消除锯齿功能，就会打开该功能。</div><div>&nbsp;</div><div>&ldquo;Autohigh&rdquo;在开始时是回放速度和外观两者并重，但在必要时会牺牲外观来保证回放速度。回放开始时，消除锯齿功能处于打开状态。如果实际帧频降到指定帧频之下，就会关闭消除锯齿功能以提高回放速度。使用此设置可模拟 Flash 中的&ldquo;消除锯齿&rdquo;命令（&ldquo;查看&rdquo;&gt;&ldquo;预览模式&rdquo;&gt;&ldquo;消除锯齿&rdquo;）。&nbsp;</div><div>&nbsp;</div><div>&ldquo;Medium&rdquo;会应用一些消除锯齿功能，但并不会平滑位图。该设置生成的图像品质要高于&ldquo;Low&rdquo;设置生成的图像品质，但低于&ldquo;High&rdquo;设置生成的图像品质。&nbsp;</div><div>&nbsp;</div><div>&ldquo;High&rdquo;使外观优先于回放速度，它始终应用消除锯齿功能。如果 SWF 文件不包含动画，则会对位图进行平滑处理；如果 SWF 文件包含动画，则不会对位图进行平滑处理。&nbsp;</div><div>&nbsp;</div><div>&ldquo;Best&rdquo;提供最佳的显示品质，而不考虑回放速度。对所有输出都进行消除锯齿处理，并且对所有位图都进行平滑处理。</div><div>&nbsp;</div><div>如果忽略 quality 属性，其默认值为 high。</div><div>&nbsp;</div><div>bgcolor 属性/参数</div><div>&nbsp;</div><div>值: #RRGGBB（十六进制 RGB 值）</div><div>模板变量：$BG</div><div>说明: （可选）指定应用程序的背景色。使用此属性来覆盖在 Flash SWF 文件中指定的背景色设置。此属性不影响 HTML 页面的背景色。</div><div>&nbsp;</div><div>scale 属性/参数</div><div>&nbsp;</div><div>值: showall | noborder | exactfit</div><div>模板变量：$SC</div><div>说明: （可选）当 width 和 height 值是百分比时，定义应用程序如何放置在浏览器窗口中。</div><div>&nbsp;</div><div>&ldquo;Showall&rdquo;（默认值）使整个 Flash 内容显示在指定区域中，且不会发生扭曲，同时保持它的原始高宽比。边框可能会出现在应用程序的两侧。</div><div>&nbsp;</div><div>&ldquo;Noborder&rdquo;对 Flash 内容进行缩放以填充指定区域，不会发生扭曲，它会使应用程序保持原始高宽比，但有可能会进行一些裁剪。&nbsp;</div><div>&nbsp;</div><div>&ldquo;Exactfit&rdquo;使整个 Flash 内容显示在指定区域中，但不尝试保持原始高宽比。可能会发生扭曲。</div><div>&nbsp;</div><div>如果忽略此属性（而且 width 和 height 值是百分比），则它的默认值是 showall。</div><div>&nbsp;</div><div>align 属性</div><div>&nbsp;</div><div>值: Default | L | R | T | B&nbsp;</div><div>模板变量：$HA</div><div>说明: 指定 object、embed 和 img 标记的 align 值，并确定如何在浏览器窗口内放置 Flash SWF 文件。&nbsp;</div><div>&nbsp;</div><div>&ldquo;默认&rdquo;使应用程序在浏览器窗口内居中显示，如果浏览器窗口小于应用程序，则会裁剪边缘。</div><div>&nbsp;</div><div>L、R、T 和 B 让应用程序分别沿着浏览器窗口的左、右、上、下边缘对齐，并根据需要裁剪其余三边。&nbsp;</div><div>&nbsp;</div><div>salign 参数</div><div>&nbsp;</div><div>值: L | R | T | B | TL | TR | BL | BR&nbsp;</div><div>模板变量：$SA</div><div>说明: （可选）指定缩放的 Flash SWF 文件在由 width 和 height 设置定义的区域内的位置。有关这些条件的详细信息，请参阅scale 属性/参数。</div><div>&nbsp;</div><div>L、R、T 和 B 让应用程序分别沿着浏览器窗口的左、右、上、下边缘对齐，并根据需要裁剪其余三边。&nbsp;</div><div>&nbsp;</div><div>TL 和 TR 让应用程序分别与浏览器窗口的左上角和右上角对齐，并根据需要裁剪底边和剩余的右侧或左侧边缘。&nbsp;</div><div>&nbsp;</div><div>BL 和 BR 让应用程序分别与浏览器窗口的左下角和右下角对齐，并根据需要裁剪顶边和剩余的右侧或左侧边缘。</div><div>&nbsp;</div><div>如果忽略此属性，Flash 内容会在浏览器窗口中居中显示。</div><div>&nbsp;</div><div>base 属性</div><div>&nbsp;</div><div>值: 基本目录或 URL</div><div>说明: （可选）指定用于解析 Flash SWF 文件中的所有相对路径语句的基本目录或 URL。如果 SWF 文件保存在与您的其他文件不同的目录下，这个属性是非常有用。</div><div>&nbsp;</div><div>menu 属性/参数</div><div>&nbsp;</div><div>值: true | false</div><div>模板变量：$ME</div><div>说明: （可选）指定当观众在浏览器中右击 (Windows) 或按住 Command 键单击 (Macintosh) 应用程序区域时将显示的菜单类型。&nbsp;</div><div>&nbsp;</div><div>&ldquo;true&rdquo; 显示完整的菜单，让用户使用各种选项增强或控制回放。</div><div>&nbsp;</div><div>&ldquo;false&rdquo; 显示的是一个只包含&ldquo;关于 Macromedia Flash Player 6&rdquo;选项和&ldquo;设置&rdquo;选项的菜单。</div><div>&nbsp;</div><div>如果忽略此属性，默认值为 true。</div><div>&nbsp;</div><div>wmode 属性/参数</div><div>&nbsp;</div><div>值: Window | Opaque | Transparent</div><div>模板变量：$WM</div><div>说明: （可选）使您可以使用 Internet Explorer 4.0 中的透明 Flash 内容、绝对定位和分层显示的功能。此标记/属性仅在带有 Flash Player ActiveX 控件的 Windows 中有效。</div><div>&nbsp;</div><div>&ldquo;Window&rdquo;在 Web 页上用影片自己的矩形窗口来播放应用程序。&ldquo;Window&rdquo;表明 Flash 应用程序与 HTML 层没有任何交互，并且始终位于最顶层。</div><div>&nbsp;</div><div>&ldquo;Opaque&rdquo; 使应用程序隐藏页面上位于它后面的所有内容。</div><div>&nbsp;</div><div>&ldquo;Transparent&rdquo;使 HTML 页的背景可以透过应用程序的所有透明部分进行显示，这样可能会降低动画性能。</div><div>&nbsp;</div><div>&ldquo;Opaque windowless&rdquo;和&ldquo;Transparent windowless&rdquo; 都可与 HTML 层交互，并允许 SWF 文件上方的层遮蔽应用程序。这两种选项之间的差异在于&ldquo;Transparent&rdquo;允许透明，因此，如果 SWF 文件的某一部分是透明的，则 SWF 文件下方的 HTML 层可以透过该部分显示出来。</div><div>&nbsp;</div><div>如果忽略此属性，默认值为 Window。仅适用于 object。</div><div>&nbsp;</div><div>allowscriptaccess 属性/参数</div><div>&nbsp;</div><div>值: always | never | samedomain</div><div>说明: 使用 allowscriptaccess 使 Flash 应用程序可与承载它的 HTML 页通信。此参数是必需的，因为 fscommand() 和 getURL() 操作可能导致 JavaScript 使用 HTML 页的权限，而该权限可能与 Flash 应用程序的权限不同。这与跨域安全性有着重要关系。&nbsp;</div><div>&nbsp;</div><div>always 允许随时执行脚本操作。</div><div>&nbsp;</div><div>never 禁止所有脚本执行操作。</div><div>&nbsp;</div><div>samedomain 只有在 Flash 应用程序来自与 HTML 页相同的域时才允许执行脚本操作。&nbsp;</div><div>&nbsp;</div><div>所有 HTML 发布模板使用的默认值均为 samedomain。</div>]]></description><category>HTML</category><comments>http://www.fenglongsheng.com/post/218.html#comment</comments><wfw:comment>http://www.fenglongsheng.com/</wfw:comment><wfw:commentRss>http://www.fenglongsheng.com/feed.asp?cmt=218</wfw:commentRss><trackback:ping>http://www.fenglongsheng.com/cmd.asp?act=tb&amp;id=218&amp;key=83dd7578</trackback:ping></item><item><title>C#列表所有IIS站点以及相关站点属性</title><author>w3cnet@qq.com (光子时代)</author><link>http://www.fenglongsheng.com/post/217.html</link><pubDate>Sun, 12 Feb 2012 00:33:52 +0800</pubDate><guid>http://www.fenglongsheng.com/post/217.html</guid><description><![CDATA[<p>using System;</p><p>using System.Drawing;</p><p>using System.Collections;</p><p>using System.ComponentModel;</p><p>using System.Windows.Forms;</p><p>using System.Windows.Forms.Design;</p><p>using System.DirectoryServices;</p><p>using System.Reflection;</p><p>using System.Text.RegularExpressions;</p><p>int TotalServerCount=0;</p><p>DirectoryEntry rootfolder = new DirectoryEntry(&quot;IIS://localhost/W3SVC&quot;);</p><p>//TotalServerCount=rootfolder.Children.SchemaFilter.Count;</p><p>foreach (DirectoryEntry child in rootfolder.Children)</p><p>{</p><p>if (child.SchemaClassName == &quot;IIsWebServer&quot;)</p><p>{</p><p>TotalServerCount+=1;</p><p>}</p><p>}</p><p>//循环获取所有站点详细属性写入数组中</p><p>string [] arrayServerID = new string[TotalServerCount];//站点标识符</p><p>string [] arrayServerIP = new string[TotalServerCount];//站点主机头</p><p>string [] arrayServerPort = new string[TotalServerCount];//站点主机头</p><p>string [] arrayServerHeader = new string[TotalServerCount];//站点主机头</p><p>string [] arrayServerPath = new string[TotalServerCount];//站点主机头</p><p>string [] arrayServerComment = new string[TotalServerCount];//站点主机头</p><p>string [] arrayServerBinds = new string[TotalServerCount];//站点主机头</p><p>string currentServerBindings;//绑定主机头IP端口字符串</p><p>char[] a=&quot;:&quot;.ToCharArray();</p><p>string [] currentBingdings =new string;</p><p>int i=0;</p><p>foreach (DirectoryEntry child in rootfolder.Children)</p><p>{</p><p>if (child.SchemaClassName == &quot;IIsWebServer&quot;)</p><p>{</p><p>arrayServerID.SetValue(child.Name.ToString()，i);</p><p>arrayServerComment.SetValue(child.Properties[&quot;ServerComment&quot;].Value.ToString()，i);</p><p>currentServerBindings=child.Properties[&quot;ServerBindings&quot;].Value.ToString();</p><p>currentBingdings=currentServerBindings.Split(a);</p><p>arrayServerIP.SetValue(currentBingdings[0]，i);</p><p>arrayServerPort.SetValue(currentBingdings，i);</p><p>arrayServerHeader.SetValue(currentBingdings，i);</p><p>foreach (DirectoryEntry rootChild in child.Children)</p><p>{</p><p>if((rootChild.SchemaClassName == &quot;IIsWebVirtualDir&quot;)(rootChild.Name.ToString()==&quot;root&quot;))</p><p>{</p><p>if(rootChild.Properties[&quot;Path&quot;].Value==null)</p><p>{</p><p>arrayServerPath.SetValue(&quot;&quot;，i);</p><p>}</p><p>else</p><p>{</p><p>arrayServerPath.SetValue(rootChild.Properties[&quot;Path&quot;].Value.ToString()，i);</p><p>}</p><p>}</p><p>}</p><p>i+=1;</p><p>}</p><p>}</p><p>//写入到datagrid中去</p><p>//循环从数组中读取数据</p><p>for(i=0;i</p><p>listView1.Items.Add((i+1).ToString());</p><p>listView1.Items[i].SubItems.Add(arrayServerID.GetValue(i).ToString());</p><p>listView1.Items[i].SubItems.Add(arrayServerComment.GetValue(i).ToString());</p><p>listView1.Items[i].SubItems.Add(arrayServerIP.GetValue(i).ToString());</p><p>listView1.Items[i].SubItems.Add(arrayServerPort.GetValue(i).ToString());</p><p>listView1.Items[i].SubItems.Add(arrayServerHeader.GetValue(i).ToString());</p><p>listView1.Items[i].SubItems.Add(arrayServerPath.GetValue(i).ToString());</p><p>}</p>]]></description><category>C#</category><comments>http://www.fenglongsheng.com/post/217.html#comment</comments><wfw:comment>http://www.fenglongsheng.com/</wfw:comment><wfw:commentRss>http://www.fenglongsheng.com/feed.asp?cmt=217</wfw:commentRss><trackback:ping>http://www.fenglongsheng.com/cmd.asp?act=tb&amp;id=217&amp;key=5b6533b3</trackback:ping></item><item><title>c#读取IIS中的站点相关属性代码</title><author>w3cnet@qq.com (光子时代)</author><link>http://www.fenglongsheng.com/post/216.html</link><pubDate>Sun, 12 Feb 2012 00:31:32 +0800</pubDate><guid>http://www.fenglongsheng.com/post/216.html</guid><description><![CDATA[<p>private void comboBox1_SelectedIndexChanged(object sender, System.EventArgs e)<br />&nbsp; {<br />&nbsp;&nbsp; string currentServerComment=comboBox1.SelectedItem.ToString();<br />&nbsp;&nbsp; string currentSiteNum = GetWebSiteNum(currentServerComment);<br />&nbsp;&nbsp; string rootPath = &quot;IIS://localhost/w3svc&quot;;<br />&nbsp;&nbsp; string currentSitePath =rootPath+&quot;/&quot;+currentSiteNum;&nbsp;&nbsp; <br />&nbsp;&nbsp; DirectoryEntry siteEntry = new DirectoryEntry(currentSitePath);</p><p>&nbsp;&nbsp; string currentServerBindings=siteEntry.Properties[&quot;ServerBindings&quot;].Value.ToString();<br />&nbsp;&nbsp; char[] a=&quot;:&quot;.ToCharArray();<br />&nbsp;&nbsp; string [] currentBingdings = null;&nbsp;&nbsp; <br />&nbsp;&nbsp; currentBingdings=currentServerBindings.Split(a);<br />&nbsp;&nbsp; string currentServerIP=currentBingdings[0];<br />&nbsp;&nbsp; string currentServerPort=currentBingdings[1];<br />&nbsp;&nbsp; string currentServerHeader=currentBingdings[2];<br />&nbsp;&nbsp; string currentServerHost=&quot;&quot;;<br />&nbsp;&nbsp; string currentServerPath=&quot;&quot;;</p><p>&nbsp;&nbsp; foreach (DirectoryEntry child in siteEntry.Children)<br />&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp; if((child.SchemaClassName == &quot;IIsWebVirtualDir&quot;)&amp;&amp;(child.Name==&quot;root&quot;))<br />&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp; currentServerPath = child.Properties[&quot;Path&quot;].Value.ToString();<br />&nbsp;&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp; }<br />&nbsp;</p><p>&nbsp;&nbsp; textBox2.Text=currentServerIP;<br />&nbsp;&nbsp; textBox3.Text=currentServerPort;<br />&nbsp;&nbsp; textBox4.Text=currentServerPath;<br />&nbsp;&nbsp; textBox5.Text=currentServerHeader;<br />&nbsp;&nbsp; textBox6.Text=currentServerHost;<br />&nbsp; }</p><p>/// &lt;summary&gt;<br />&nbsp; /// 根据站点名称获取站点标识符<br />&nbsp; /// &lt;/summary&gt; <br />&nbsp; <br />&nbsp; public string GetWebSiteNum(string siteName)<br />&nbsp; {</p><p>&nbsp;&nbsp; Regex regex = new Regex(siteName);<br />&nbsp;&nbsp; string tmpStr;<br />&nbsp;&nbsp; string entPath = &quot;IIS://localhost/w3svc&quot;;<br />&nbsp;&nbsp; DirectoryEntry ent =new DirectoryEntry(entPath);&nbsp;</p><p>&nbsp;&nbsp; foreach(DirectoryEntry child in ent.Children)</p><p>&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp; if(child.SchemaClassName == &quot;IIsWebServer&quot;)<br />&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp; if(child.Properties[&quot;ServerBindings&quot;].Value != null)<br />&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tmpStr = child.Properties[&quot;ServerBindings&quot;].Value.ToString();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if(regex.Match(tmpStr).Success)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return child.Name;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp;&nbsp; }</p><p>&nbsp;&nbsp;&nbsp;&nbsp; if(child.Properties[&quot;ServerComment&quot;].Value != null)</p><p>&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tmpStr = child.Properties[&quot;ServerComment&quot;].Value.ToString();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if(regex.Match(tmpStr).Success)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return child.Name;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp; }<br />&nbsp;&nbsp; return &quot;&quot;;<br />&nbsp;&nbsp; <br />&nbsp; }</p>]]></description><category>C#</category><comments>http://www.fenglongsheng.com/post/216.html#comment</comments><wfw:comment>http://www.fenglongsheng.com/</wfw:comment><wfw:commentRss>http://www.fenglongsheng.com/feed.asp?cmt=216</wfw:commentRss><trackback:ping>http://www.fenglongsheng.com/cmd.asp?act=tb&amp;id=216&amp;key=5622ed3b</trackback:ping></item><item><title>使用Flash和C# WinForm配合打造界面漂亮的应用程序</title><author>w3cnet@qq.com (光子时代)</author><link>http://www.fenglongsheng.com/post/215.html</link><pubDate>Sun, 12 Feb 2012 00:27:33 +0800</pubDate><guid>http://www.fenglongsheng.com/post/215.html</guid><description><![CDATA[<p style="color: rgb(0, 0, 0);">(木野狐 2006-10-29)</p><p>&nbsp;</p><p style="color: rgb(0, 0, 0);">由于之前一阵公司一个项目提出的需求，自己也想进行这方面的尝试，我对如何使用 Flash 来做  WinForm 程序的界面产生了兴趣，于是学习了一些资料，摘要于此。</p><p>&nbsp;</p><p style="color: rgb(0, 0, 0);">要在 WinForm 中使用 Flash，通常需要用到 Shockwave Flash Object  这个 COM 组件。</p><p>&nbsp;</p><p style="color: rgb(0, 0, 0);">(http://www.codeproject.com/csharp/fscommand.asp)</p><p>&nbsp;</p><p style="color: rgb(0, 0, 0);">(http://www.codeproject.com/useritems/FlashDBInteract.asp)</p><p>&nbsp;</p><p style="color: rgb(0, 0, 0);">具体步骤如下：</p><p>&nbsp;</p><p style="color: rgb(0, 0, 0);">首先添加对 COM 组件 Shockwave Flash Object  的引用，将该组件拖到窗体上之后，可以设置如下关键属性：</p><p>&nbsp;</p><p style="color: rgb(0, 0, 0);">Movie: Flash 的存放地址</p><p>&nbsp;</p><p style="color: rgb(0, 0, 0);">EmbedMovie: 是否嵌入到程序的资源中。</p><p>&nbsp;</p><p style="color: rgb(0, 0, 0);">接下来你可以设置其他一些属性，使得 Flash 的窗口最大化，隐藏掉其宿主程序的 C# WinForm  窗体。</p><p>&nbsp;</p><p style="color: rgb(0, 0, 0);">在 Flash 的 ActionScript 中，可以通过 FSCommand 函数与 hosting  app 通信，该函数有两个参数，分别是：</p><p>&nbsp;</p><p style="color: rgb(0, 0, 0);">command: 命令名称</p><p>&nbsp;</p><p style="color: rgb(0, 0, 0);">parameters: 参数</p><p>&nbsp;</p><p style="color: rgb(0, 0, 0);">例子：</p><p>&nbsp;</p><p style="color: rgb(0, 0, 0);">on(press){</p><p>&nbsp;</p><p style="color: rgb(0, 0, 0);">fscommand(&quot;Circule&quot;, &quot;Green&quot;);</p><p>&nbsp;</p><p style="color: rgb(0, 0, 0);">}</p><p>&nbsp;</p><p style="color: rgb(0, 0, 0);">在 C# 中，处理 Flash 对象的 FSCommand 事件即可。</p><p>&nbsp;</p><p style="color: rgb(0, 0, 0);">如果该事件处理函数的 EventArgs 为 e, 则有如下对应关系：</p><p>&nbsp;</p><p style="color: rgb(0, 0, 0);">e.command -&gt; Flash 中调用 FSCommand 时的 command  参数；</p><p>&nbsp;</p><p style="color: rgb(0, 0, 0);">e.args -&gt; Flash 中调用 FSCommand 时的 arguments  参数。</p><p>&nbsp;</p><p style="color: rgb(0, 0, 0);">在 C# 中往 Flash 传递数值用 SetVariable 方法：</p><p>&nbsp;</p><p style="color: rgb(0, 0, 0);">axShockwaveFlash1.SetVariable(&quot;variablename&quot;,  &quot;valueasstring&quot;);</p><p>&nbsp;</p><p style="color: rgb(0, 0, 0);">对应的，有一个 GetVariable 方法可以获得 Flash 中的变量值。</p><p>&nbsp;</p><p style="color: rgb(0, 0, 0);">FSCommand  的参数只能传递一个，所以其功能存在一定的局限性。在你需要传递多个参数的时候，则需要在调用方用字符串拼接各个参数值，然后在被调用方重新解开。这种办法使得复杂的传值显得很丑陋。</p><p>&nbsp;</p><p style="color: rgb(0, 0, 0);">不过，除了 FSCommand 外，我们还有另一种办法和 Flash 通信，就是使用 Flash  Player 8 External API.</p><p>&nbsp;</p><p style="color: rgb(0, 0, 0);">(http://www.codeproject.com/cs/media/flashexternalapi.asp)</p><p>&nbsp;</p><p style="color: rgb(0, 0, 0);">使用 External API，可以实现 ActionScript 和 C#  的双向调用。其好处就在于每次调用时的参数和返回值都通过一个 XML 文档来传递，这样就比 FSCommand 功能完善了很多。当然在 C#  中，我们也需要声明一下外部函数实现的对应关系。</p><p>&nbsp;</p><p style="color: rgb(0, 0, 0);">代码片段：</p><p>&nbsp;</p><p style="color: rgb(0, 0, 0);">Flash ActionScript 中声明提供给 hosting application  调用的回调函数：</p><p>&nbsp;</p><p style="color: rgb(0, 0, 0);">imp<wbr></wbr>ort Flash.external.ExternalInterface;</p><p>&nbsp;</p><p style="color: rgb(0, 0, 0);">ExternalInterface.addCallback(&quot;loadAndPlayVideo&quot;,  null, loadAndPlayVideo);</p><p>&nbsp;</p><p style="color: rgb(0, 0, 0);">C# 中调用 Flash 的情形：</p><p>&nbsp;</p><p style="color: rgb(0, 0, 0);">FlashPlayer.CallFunction(&quot;<invoke></invoke></p><p>&nbsp;</p><p style="color: rgb(0, 0, 0);">&quot; name=\&quot;loadAndPlayVideo\&quot;  returntype=\&quot;XML\&quot;&gt;</p><p>&nbsp;</p><p style="color: rgb(0, 0, 0);"><arguments><string>&quot; + fileDialog.FileName  +</string></arguments></p><p>&nbsp;</p><p style="color: rgb(0, 0, 0);">&quot;&quot;);</p><p>&nbsp;</p><p style="color: rgb(0, 0, 0);">在 ActionScript 中调用 C# 函数：</p><p>&nbsp;</p><p style="color: rgb(0, 0, 0);">ExternalInterface.call(&quot;ResizePlayer&quot;,</p><p>&nbsp;</p><p style="color: rgb(0, 0, 0);">videoPlayer.metadata.width,  videoPlayer.metadata.height);</p><p>&nbsp;</p><p style="color: rgb(0, 0, 0);">在 C# 中声明被 Flash 调用的函数：</p><p>&nbsp;</p><p style="color: rgb(0, 0, 0);">FlashPlayer.FlashCall +=</p><p>&nbsp;</p><p style="color: rgb(0, 0, 0);">new  _IShockwaveFlashEvents_FlashCallEventHandler(FlashPlayer_FlashCall);</p><p>&nbsp;</p><p style="color: rgb(0, 0, 0);">在此，我们可以看到 C# 和 Flash 进行通信还是相当方便的。</p><p>&nbsp;</p><p style="color: rgb(0, 0, 0);">除此之外，我顺便搜索到其他一些和 Flash 有关的不错的文章：</p><p>&nbsp;</p><p style="color: rgb(0, 0, 0);">Flash and .NET with FlashRemoting</p><p>&nbsp;</p><p style="color: rgb(0, 0, 0);">http://www.codeproject.com/aspnet/FlashRemoting.asp</p><p>&nbsp;</p><p style="color: rgb(0, 0, 0);">Multiple File Upload With Progress Bar Using Flash  and ASP.NET</p><p>&nbsp;</p><p style="color: rgb(0, 0, 0);">http://www.codeproject.com/aspnet/FlashUpload.asp</p><p>&nbsp;</p><p style="color: rgb(0, 0, 0);">Flash GUI for your exe using minimalistic approach  (C++)</p><p>&nbsp;</p><p style="color: rgb(0, 0, 0);">http://www.codeproject.com/useritems/FlashGui.asp</p><p style="color: rgb(0, 0, 0);">from <a href="http://zhangpingan2005.blog.163.com/blog/static/672295422010319103824445/">url:http://zhangpingan2005.blog.163.com/blog/static/672295422010319103824445/</a></p>]]></description><category>C#</category><comments>http://www.fenglongsheng.com/post/215.html#comment</comments><wfw:comment>http://www.fenglongsheng.com/</wfw:comment><wfw:commentRss>http://www.fenglongsheng.com/feed.asp?cmt=215</wfw:commentRss><trackback:ping>http://www.fenglongsheng.com/cmd.asp?act=tb&amp;id=215&amp;key=b12721b2</trackback:ping></item><item><title>C#获取项目程序及运行路径的方法</title><author>w3cnet@qq.com (光子时代)</author><link>http://www.fenglongsheng.com/post/214.html</link><pubDate>Sat, 11 Feb 2012 23:05:04 +0800</pubDate><guid>http://www.fenglongsheng.com/post/214.html</guid><description><![CDATA[<div class="cnt" id="blog_text">1.asp.net  webform用&ldquo;Request.PhysicalApplicationPath获取站点所在虚拟目录的物理路径，最后包含&ldquo;\&rdquo;；<p>2.c#  winform用<br />A：&ldquo;Application.StartupPath&rdquo;:获取当前应用程序所在目录的路径，最后不包含&ldquo;\&rdquo;；<br />B：&ldquo;Application.ExecutablePath  &rdquo;:获取当前应用程序文件的路径，包含文件的名称；<br />C：&ldquo;AppDomain.CurrentDomain.BaseDirectory&rdquo;:获取当前应用程序所在目录的路径，最后包含&ldquo;\&rdquo;；<br />D：&ldquo;System.Threading.Thread.GetDomain().BaseDirectory&rdquo;:获取当前应用程序所在目录的路径，最后包含&ldquo;\&rdquo;；<br />E：&ldquo;Environment.CurrentDirectory&rdquo;:获取当前应用程序的路径，最后不包含&ldquo;\&rdquo;；<br />F：&ldquo;System.IO.Directory.GetCurrentDirectory&rdquo;:获取当前应用程序的路径，最后不包含&ldquo;\&rdquo;；</p><p>3.c# windows  service服务中用&ldquo;AppDomain.CurrentDomain.BaseDirectory&rdquo;或&ldquo;System.Threading.Thread.GetDomain().BaseDirectory&rdquo;；<br />用&ldquo;Environment.CurrentDirectory&rdquo;和&ldquo;System.IO.Directory.GetCurrentDirectory&rdquo;将得到&ldquo;  system32&rdquo;目录的路径；<br />如果要使用&ldquo;Application.StartupPath&rdquo;或&ldquo;Application.ExecutablePath  &rdquo;，需要手动添加对&ldquo;System.Windows.Forms.dll &rdquo;的引用，并在程序开头用&ldquo;using    System.Windows.Forms&rdquo;声明该引用；</p><p>4.在卸载程序获取系统安装的目录：<br />System.Reflection.Assembly curPath =  System.Reflection.Assembly.GetExecutingAssembly();<br />string  path=curPath.Location;//得到安装程序类SetupLibrary文件的路径，获取这个文件路径所在的目录即得到安装程序的目录;</p><p>&nbsp;</p><p>System.Diagnostics.StackFrame f = new  System.Diagnostics.StackFrame(1);<br />MethodBase mb =  f.GetMethod();<br />System.Web.HttpContext.Current.Response.Write(mb.DeclaringType.ToString());  获取调用类的信息,可以从父类知道子类的情况</p></div><p><br />&nbsp;</p>]]></description><category>C#</category><comments>http://www.fenglongsheng.com/post/214.html#comment</comments><wfw:comment>http://www.fenglongsheng.com/</wfw:comment><wfw:commentRss>http://www.fenglongsheng.com/feed.asp?cmt=214</wfw:commentRss><trackback:ping>http://www.fenglongsheng.com/cmd.asp?act=tb&amp;id=214&amp;key=101728cb</trackback:ping></item></channel></rss>

