﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><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>BlogJava-zhyiwww -随笔分类-windows</title><link>http://www.blogjava.net/zhyiwww/category/16061.html</link><description>用平实的笔，记录编程路上的点点滴滴………</description><language>zh-cn</language><lastBuildDate>Wed, 19 Feb 2014 14:33:41 GMT</lastBuildDate><pubDate>Wed, 19 Feb 2014 14:33:41 GMT</pubDate><ttl>60</ttl><item><title>Windows下的SC命令参考</title><link>http://www.blogjava.net/zhyiwww/archive/2014/02/18/410001.html</link><dc:creator>zhyiwww</dc:creator><author>zhyiwww</author><pubDate>Tue, 18 Feb 2014 12:46:00 GMT</pubDate><guid>http://www.blogjava.net/zhyiwww/archive/2014/02/18/410001.html</guid><wfw:comment>http://www.blogjava.net/zhyiwww/comments/410001.html</wfw:comment><comments>http://www.blogjava.net/zhyiwww/archive/2014/02/18/410001.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/zhyiwww/comments/commentRss/410001.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/zhyiwww/services/trackbacks/410001.html</trackback:ping><description><![CDATA[<div></div><div>C:\tmp&gt;sc /?</div><div></div><div>错误: &nbsp;未知命令</div><div></div><div>描述:</div><div>&nbsp; &nbsp; &nbsp; &nbsp; SC 是用于与服务控制管理器和服务进行通信的命令行程序。</div><div>用法:</div><div>&nbsp; &nbsp; &nbsp; &nbsp; sc &lt;server&gt; [command] [service name] &lt;option1&gt; &lt;option2&gt;...</div><div></div><div></div><div>&nbsp; &nbsp; &nbsp; &nbsp; 选项 &lt;server&gt; 的格式为 "\\ServerName"</div><div>&nbsp; &nbsp; &nbsp; &nbsp; 键入 "sc [command]" 可以获得有关命令的进一步帮助</div><div>&nbsp; &nbsp; &nbsp; &nbsp; 命令:</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; query-----------查询服务的状态，</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 或枚举服务类型的状态。</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; queryex---------查询服务的扩展状态，</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 或枚举服务类型的状态。</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; start-----------启动服务。</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pause-----------向服务发送 PAUSE 控制请求。</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; interrogate-----向服务发送 INTERROGATE 控制请求。</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; continue--------向服务发送 CONTINUE 控制请求。</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; stop------------向服务发送 STOP 请求。</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; config----------更改服务的配置(永久)。</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; description-----更改服务的描述。</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; failure---------更改服务失败时执行的操作。</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; failureflag-----更改服务的失败操作标志。</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sidtype---------更改服务的服务 SID 类型。</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; privs-----------更改服务的所需权限。</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qc--------------查询服务的配置信息。</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qdescription----查询服务的描述。</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qfailure--------查询失败时服务执行的操作。</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qfailureflag----查询服务的失败操作标志。</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qsidtype--------查询服务的服务 SID 类型。</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qprivs----------查询服务的所需权限。</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qtriggerinfo----查询服务的触发器参数。</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qpreferrednode--查询首选的服务 NUMA 节点。</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; delete----------(从注册表)删除服务。</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; create----------创建服务(将其添加到注册表)。</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; control---------向服务发送控制。</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sdshow----------显示服务的安全描述符。</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sdset-----------设置服务的安全描述符。</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; showsid---------显示相应于假定名称的 SID 字符串。</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; triggerinfo-----配置服务的触发器参数。</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; preferrednode---设置首选的服务 NUMA 节点。</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GetDisplayName--获取服务的 DisplayName</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GetKeyName------获取服务的 ServiceKeyName。</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; EnumDepend------枚举服务的依存关系。</div><div></div><div>&nbsp; &nbsp; &nbsp; &nbsp; 下列命令不要求服务名称:</div><div>&nbsp; &nbsp; &nbsp; &nbsp; sc &lt;server&gt; &lt;command&gt; &lt;option&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; boot------------(ok | bad) 指示是否将上一次启动保存为</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 最近一次已知的正确启动配置</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Lock------------锁定服务数据库</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QueryLock-------查询 SCManager 数据库的 LockStatus</div><div>示例:</div><div>&nbsp; &nbsp; &nbsp; &nbsp; sc start MyService</div><div></div><div>是否想参阅 QUERY 和 QUERYEX 命令的帮助? [ y | n ]:</div><div>y</div><div></div><div>QUERY 和 QUERYEX 选项:</div><div>&nbsp; &nbsp; &nbsp; &nbsp; 如果查询命令带服务名称，将返回</div><div>&nbsp; &nbsp; &nbsp; &nbsp; 该服务的状态。其他选项不适合这种</div><div>&nbsp; &nbsp; &nbsp; &nbsp; 情况。如果查询命令不带参数或</div><div>&nbsp; &nbsp; &nbsp; &nbsp; 带下列选项之一，将枚举此服务。</div><div>&nbsp; &nbsp; type= &nbsp; &nbsp;要枚举的服务的类型(driver, service, all)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;默认 = service)</div><div>&nbsp; &nbsp; state= &nbsp; 要枚举的服务的状态 (inactive, all)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(默认 = active)</div><div>&nbsp; &nbsp; bufsize= 枚举缓冲区的大小(以字节计)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(默认 = 4096)</div><div>&nbsp; &nbsp; ri= &nbsp; &nbsp; &nbsp;开始枚举的恢复索引号</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(默认 = 0)</div><div>&nbsp; &nbsp; group= &nbsp; 要枚举的服务组</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(默认 = all groups)</div><div></div><div>语法示例</div><div>sc query &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;- 枚举活动服务和驱动程序的状态</div><div>sc query eventlog &nbsp; &nbsp; &nbsp; - 显示 eventlog 服务的状态</div><div>sc queryex eventlog &nbsp; &nbsp; - 显示 eventlog 服务的扩展状态</div><div>sc query type= driver &nbsp; - 仅枚举活动驱动程序</div><div>sc query type= service &nbsp;- 仅枚举 Win32 服务</div><div>sc query state= all &nbsp; &nbsp; - 枚举所有服务和驱动程序</div><div>sc query bufsize= 50 &nbsp; &nbsp;- 枚举缓冲区为 50 字节</div><div>sc query ri= 14 &nbsp; &nbsp; &nbsp; &nbsp; - 枚举时恢复索引 = 14</div><div>sc queryex group= "" &nbsp; &nbsp;- 枚举不在组内的活动服务</div><div>sc query type= interact - 枚举所有不活动服务</div><div>sc query type= driver group= NDIS &nbsp; &nbsp; - 枚举所有 NDIS 驱动程序</div><div></div><div></div><div>C:\tmp&gt;<br /><br />如果需要查看全部的服务：<br />可以使用 &nbsp;sc query state= all&nbsp;<br /><br />如果我想完成一个自动启动和关闭的oracle 脚本，可以通过如下步骤实现：<br />1)sc query state= all &gt; sl.txt<br />2)findstr "DISPLAY_NAME" sl.txt &gt; asl.txt<br />如下：<br /><div></div><div>C:\tmp&gt;findstr "DISPLAY_NAME" &nbsp;sl.txt</div><div>DISPLAY_NAME: Adobe Acrobat Update Service</div><div>DISPLAY_NAME: Application Experience</div><div>DISPLAY_NAME: Application Layer Gateway Service</div><div>DISPLAY_NAME: AMD External Events Utility</div><div>DISPLAY_NAME: Avira Scheduler</div><div>DISPLAY_NAME: Avira Real-Time Protection</div><div>DISPLAY_NAME: Application Identity</div><div>DISPLAY_NAME: Application Information</div><div>DISPLAY_NAME: Application Management</div><div>DISPLAY_NAME: Windows Audio Endpoint Builder</div><div>DISPLAY_NAME: Windows Audio</div>。。。<br />3)findstr /i "oracle" &nbsp;asl.txt &gt; osl.txt<br />内容:<div>C:\tmp&gt;findstr /i "oracle" asl.txt</div><div>DISPLAY_NAME: OracleDBConsoleorcl</div><div>DISPLAY_NAME: OracleJobSchedulerORCL</div><div>DISPLAY_NAME: OracleMTSRecoveryService</div><div>DISPLAY_NAME: OracleOraDb11g_home1ClrAgent</div><div>DISPLAY_NAME: OracleOraDb11g_home1TNSListener</div><div>DISPLAY_NAME: OracleServiceORCL</div><div>DISPLAY_NAME: Oracle ORCL VSS Writer Service<br />4)在vim中，把DISPLAY_NAME:替换成 net stop 或者net start就可以了：<br /><div><div><br />C:\tmp&gt;gvim osl.txt</div><div></div><div>C:\tmp&gt;type &nbsp;osl.txt</div><div>net stop &nbsp;OracleDBConsoleorcl</div><div>net stop &nbsp;OracleJobSchedulerORCL</div><div>net stop &nbsp;OracleMTSRecoveryService</div><div>net stop &nbsp;OracleOraDb11g_home1ClrAgent</div><div>net stop &nbsp;OracleOraDb11g_home1TNSListener</div><div>net stop &nbsp;OracleServiceORCL</div><div>net stop &nbsp;Oracle ORCL VSS Writer Service</div><div></div><div>net start &nbsp;OracleDBConsoleorcl</div><div>net start &nbsp;OracleJobSchedulerORCL</div><div>net start &nbsp;OracleMTSRecoveryService</div><div>net start &nbsp;OracleOraDb11g_home1ClrAgent</div><div>net start &nbsp;OracleOraDb11g_home1TNSListener</div><div>net start &nbsp;OracleServiceORCL</div><div>net start &nbsp;Oracle ORCL VSS Writer Service</div><div></div></div></div></div><img src ="http://www.blogjava.net/zhyiwww/aggbug/410001.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/zhyiwww/" target="_blank">zhyiwww</a> 2014-02-18 20:46 <a href="http://www.blogjava.net/zhyiwww/archive/2014/02/18/410001.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>grep的使用</title><link>http://www.blogjava.net/zhyiwww/archive/2009/02/24/256420.html</link><dc:creator>zhyiwww</dc:creator><author>zhyiwww</author><pubDate>Tue, 24 Feb 2009 06:01:00 GMT</pubDate><guid>http://www.blogjava.net/zhyiwww/archive/2009/02/24/256420.html</guid><wfw:comment>http://www.blogjava.net/zhyiwww/comments/256420.html</wfw:comment><comments>http://www.blogjava.net/zhyiwww/archive/2009/02/24/256420.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/zhyiwww/comments/commentRss/256420.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/zhyiwww/services/trackbacks/256420.html</trackback:ping><description><![CDATA[
		<br />[1]在windows下和linux使用上的不同点<br />windows下的用法<br />grep -ior -e img[0-9]\{2,\}<br />也可以是<br />grep -ior -e <font color="#ff0000"><font size="4">"</font></font>img[0-9]\{2,5\}<font color="#ff0000" size="4">"<br /><br /></font>linux 下的用法<br />grep -ior -e <font color="#ff0000"><font size="4">"</font></font>img[0-9]\{2,5\}<font color="#ff0000" size="4">"<br /></font><br />在windows下和linux下的区别主要是 正则表达式 的引号<br /><br />[2]多条件查询<br /><br />and 关系<br /><font color="#ff0000"><font size="4">grep -ro -e "\/tour\/" * | grep -n  -e  "index"<br /><font color="#000000"><br />[3]贪婪模式<br />比如：<br />grep -o  -e "href=\".*[0-9]\{3\}\"" *.html<br />返回的结果是<br />walking_beijing.html:href="/cts/tour/travelitinerary_357"<br />walking_beijing.html:href="/cts/tour/travelprice_357"<br />walking_beijing.html:<font color="#0000ff">href="/chinatravelguide/index.html"&gt;&lt;img src="http://image.chinatraXXXXX.com/xianlu_013.jpg"</font> width="430" height="125"<br /><br />这个蓝色的匹配项不是我想要的<br /><br />［4］<br /><br /><br /></font><br /><br /></font></font><img src ="http://www.blogjava.net/zhyiwww/aggbug/256420.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/zhyiwww/" target="_blank">zhyiwww</a> 2009-02-24 14:01 <a href="http://www.blogjava.net/zhyiwww/archive/2009/02/24/256420.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>foxmail不能发送邮件</title><link>http://www.blogjava.net/zhyiwww/archive/2008/12/02/243980.html</link><dc:creator>zhyiwww</dc:creator><author>zhyiwww</author><pubDate>Tue, 02 Dec 2008 09:44:00 GMT</pubDate><guid>http://www.blogjava.net/zhyiwww/archive/2008/12/02/243980.html</guid><wfw:comment>http://www.blogjava.net/zhyiwww/comments/243980.html</wfw:comment><comments>http://www.blogjava.net/zhyiwww/archive/2008/12/02/243980.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/zhyiwww/comments/commentRss/243980.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/zhyiwww/services/trackbacks/243980.html</trackback:ping><description><![CDATA[
		<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Arial; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 22px; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">我的foxmail能收邮件但是不能发送邮件，问题解决：<br />Network Associates 就是这个软件的问题！<span class="Apple-converted-space"> </span><br />打开控制台，选择访问保护，里面有个25端口，就是禁止发邮件的设置，把勾去掉就OK了！<br /><br /></span>
<img src ="http://www.blogjava.net/zhyiwww/aggbug/243980.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/zhyiwww/" target="_blank">zhyiwww</a> 2008-12-02 17:44 <a href="http://www.blogjava.net/zhyiwww/archive/2008/12/02/243980.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>用forfiles或者where实现文件查找</title><link>http://www.blogjava.net/zhyiwww/archive/2008/12/02/243936.html</link><dc:creator>zhyiwww</dc:creator><author>zhyiwww</author><pubDate>Tue, 02 Dec 2008 07:11:00 GMT</pubDate><guid>http://www.blogjava.net/zhyiwww/archive/2008/12/02/243936.html</guid><wfw:comment>http://www.blogjava.net/zhyiwww/comments/243936.html</wfw:comment><comments>http://www.blogjava.net/zhyiwww/archive/2008/12/02/243936.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/zhyiwww/comments/commentRss/243936.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/zhyiwww/services/trackbacks/243936.html</trackback:ping><description><![CDATA[
		<br />
forfiles 也可以用来查找文件<br />
forfiles /p . /s  /m  *.html /c  "cmd /c echo @path"<br /><br />
这样可以显示你找到的文件的全路径。<br />
相当于<br />
where /R .  *.html<br /><br /><br />
如果用<br />
dir /s . | grep *.html <br />
就只能看到文件的名称，不能看到文件的全路径。<br /><br />两个命令的不同：<br />用forfiles查找到文件后，可以用/c参数实现对文件的操作，比如重命名、移动、删除等操作<br />用where实现查找就不能实现此功能，仅能告诉我们要查找的文件存不存在。<br /><br />两个命令的相同点：<br />都可以查找文件，并且可以看到文件的全路径。<br /><br />用dir + grep 就不能看到查到文件的全路径。<br /><br />在linux下面，用find也可以实现文件查找，功能类似于forfiles<br /><img src ="http://www.blogjava.net/zhyiwww/aggbug/243936.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/zhyiwww/" target="_blank">zhyiwww</a> 2008-12-02 15:11 <a href="http://www.blogjava.net/zhyiwww/archive/2008/12/02/243936.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>用forfiles实现递归删除文件</title><link>http://www.blogjava.net/zhyiwww/archive/2008/12/02/243925.html</link><dc:creator>zhyiwww</dc:creator><author>zhyiwww</author><pubDate>Tue, 02 Dec 2008 06:23:00 GMT</pubDate><guid>http://www.blogjava.net/zhyiwww/archive/2008/12/02/243925.html</guid><wfw:comment>http://www.blogjava.net/zhyiwww/comments/243925.html</wfw:comment><comments>http://www.blogjava.net/zhyiwww/archive/2008/12/02/243925.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/zhyiwww/comments/commentRss/243925.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/zhyiwww/services/trackbacks/243925.html</trackback:ping><description><![CDATA[
		<br />forfiles /p \2008beijing  /m *~ /c "cmd /c rm @path" <br />可以实现将 2008beijing目录下的以及各级子目录下的临时文件删除<br /><br />forfiles /p \2008beijing /m *svn* "cmd /c rm @path -rf"<br />可以将 2008beijing目录下以及各级子目录下包含svn的目录和文件全部删除<br /><br />使用的理由：<br />上面的功能使用rm不能实现，又没有其他的命令可以替代，所以，就想到了用这个来实现。<br /><br /><img src ="http://www.blogjava.net/zhyiwww/aggbug/243925.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/zhyiwww/" target="_blank">zhyiwww</a> 2008-12-02 14:23 <a href="http://www.blogjava.net/zhyiwww/archive/2008/12/02/243925.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>启动和关闭Oracle脚本</title><link>http://www.blogjava.net/zhyiwww/archive/2008/11/19/241413.html</link><dc:creator>zhyiwww</dc:creator><author>zhyiwww</author><pubDate>Wed, 19 Nov 2008 08:14:00 GMT</pubDate><guid>http://www.blogjava.net/zhyiwww/archive/2008/11/19/241413.html</guid><wfw:comment>http://www.blogjava.net/zhyiwww/comments/241413.html</wfw:comment><comments>http://www.blogjava.net/zhyiwww/archive/2008/11/19/241413.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/zhyiwww/comments/commentRss/241413.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/zhyiwww/services/trackbacks/241413.html</trackback:ping><description><![CDATA[Oracle在启动的时候会用掉很多的内存，所以，通常情况下我们都把其服务关闭，在用的时候再启动。一般一个oracle实例都会有4个服务在启动，所以，我们如果一个一个启动的话，很麻烦，所以，下面就是一个启动的脚本。<br />把下面的代码存成一个startoracle.bat文件，想启动的时候，执行一下就可以了。<br /><br />sc  start  OracleServiceORCL<br />sc  start  OracleDBConsoleorcl<br />sc  start  OracleJobSchedulerORCL<br />sc  start  OracleOraDb10g_home1iSQL*Plus<br />sc  start  OracleOraDb10g_home1TNSListener<br /><br />关闭也一样，把如下的代码存成一个stoporacle.bat，想关闭的时候，执行一下就可以了。<br /><br />sc  stop  OracleDBConsoleorcl<br />sc  stop  OracleJobSchedulerORCL<br />sc  stop  OracleOraDb10g_home1iSQL*Plus<br />sc  stop  OracleOraDb10g_home1TNSListener<br />sc  stop  OracleServiceORCL<br /><br /><br /><br /><img src ="http://www.blogjava.net/zhyiwww/aggbug/241413.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/zhyiwww/" target="_blank">zhyiwww</a> 2008-11-19 16:14 <a href="http://www.blogjava.net/zhyiwww/archive/2008/11/19/241413.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>如何只列出一个目录下的文件</title><link>http://www.blogjava.net/zhyiwww/archive/2008/11/18/241165.html</link><dc:creator>zhyiwww</dc:creator><author>zhyiwww</author><pubDate>Tue, 18 Nov 2008 08:25:00 GMT</pubDate><guid>http://www.blogjava.net/zhyiwww/archive/2008/11/18/241165.html</guid><wfw:comment>http://www.blogjava.net/zhyiwww/comments/241165.html</wfw:comment><comments>http://www.blogjava.net/zhyiwww/archive/2008/11/18/241165.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/zhyiwww/comments/commentRss/241165.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/zhyiwww/services/trackbacks/241165.html</trackback:ping><description><![CDATA[
		<br />
如果要列出一个目录下的所有的文件，包括目录和文件可以用<br />
dir <br />
如果需要列出所有，包括隐藏文件<br />
dir /a<br />
如果要只列出目录<br />
dir /AD<br />
如果只列出文件不包括目录<br />
dir /A-D<br /><br /><img src ="http://www.blogjava.net/zhyiwww/aggbug/241165.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/zhyiwww/" target="_blank">zhyiwww</a> 2008-11-18 16:25 <a href="http://www.blogjava.net/zhyiwww/archive/2008/11/18/241165.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>用命令实现文件追加</title><link>http://www.blogjava.net/zhyiwww/archive/2008/11/14/240438.html</link><dc:creator>zhyiwww</dc:creator><author>zhyiwww</author><pubDate>Fri, 14 Nov 2008 01:07:00 GMT</pubDate><guid>http://www.blogjava.net/zhyiwww/archive/2008/11/14/240438.html</guid><wfw:comment>http://www.blogjava.net/zhyiwww/comments/240438.html</wfw:comment><comments>http://www.blogjava.net/zhyiwww/archive/2008/11/14/240438.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/zhyiwww/comments/commentRss/240438.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/zhyiwww/services/trackbacks/240438.html</trackback:ping><description><![CDATA[把一个字符串追加到一个文件的后面，通常情况下，我们需要打开一个文件，然后，在文件里面添加一段字符串，所以，我们也可以通过其他的方法来实现，比如在命令行下面，就可以不用打开文件直接去实现。<br /><br />比如，我想在hosts文件后面添加一行代码<br />205.209.137.109   www.baidu.com<br />就可以用下面的方法来实现：<br />echo 205.209.137.109   www.baidu.com &gt;&gt; hosts<br />就可以了。<br /><br />这个命令是可以在linux下面用，也可以在windowsx下面使用。<br /><br /><br /><br /><img src ="http://www.blogjava.net/zhyiwww/aggbug/240438.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/zhyiwww/" target="_blank">zhyiwww</a> 2008-11-14 09:07 <a href="http://www.blogjava.net/zhyiwww/archive/2008/11/14/240438.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>DOS下列出目录下的目录</title><link>http://www.blogjava.net/zhyiwww/archive/2008/08/21/223515.html</link><dc:creator>zhyiwww</dc:creator><author>zhyiwww</author><pubDate>Thu, 21 Aug 2008 07:18:00 GMT</pubDate><guid>http://www.blogjava.net/zhyiwww/archive/2008/08/21/223515.html</guid><wfw:comment>http://www.blogjava.net/zhyiwww/comments/223515.html</wfw:comment><comments>http://www.blogjava.net/zhyiwww/archive/2008/08/21/223515.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/zhyiwww/comments/commentRss/223515.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/zhyiwww/services/trackbacks/223515.html</trackback:ping><description><![CDATA[在DOS下，很容易使用的一个命令就是dir,这个命令会列出这个目录向所有文件，包括目录和普通文件。<br />如果我只想列出目录下的目录，怎么办呢？<br />试一下 dir /AD就可以了。<img src ="http://www.blogjava.net/zhyiwww/aggbug/223515.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/zhyiwww/" target="_blank">zhyiwww</a> 2008-08-21 15:18 <a href="http://www.blogjava.net/zhyiwww/archive/2008/08/21/223515.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Windows下的定时关机</title><link>http://www.blogjava.net/zhyiwww/archive/2007/08/31/141631.html</link><dc:creator>zhyiwww</dc:creator><author>zhyiwww</author><pubDate>Fri, 31 Aug 2007 02:02:00 GMT</pubDate><guid>http://www.blogjava.net/zhyiwww/archive/2007/08/31/141631.html</guid><wfw:comment>http://www.blogjava.net/zhyiwww/comments/141631.html</wfw:comment><comments>http://www.blogjava.net/zhyiwww/archive/2007/08/31/141631.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/zhyiwww/comments/commentRss/141631.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/zhyiwww/services/trackbacks/141631.html</trackback:ping><description><![CDATA[主要使用命令来实现。<br />通常情况下，我们会使用<br />shutdown -p<br />来关闭计算机，因为快捷。所以我就想，可否添加一个作业，来定时执行此命令不就可以完成定时关机了？<br />所以，我就做了一个测试<br />at 9:55 shutdown -p<br />然后，就继续使用电脑，到9：55的时候，机器果然关闭了。<br />所以，在家的时候，晚上，我让机器下载东西，设了一个定时关机，<br />at 23:55 shutdown -p<br />结果，第二天早上，机器锁定着，但让在运行。纳闷！！！<br />所以就做了个测试，<br />at 9:20 shutdown -p<br />不过，我也把机器，锁定了，可是过了9：20，机器让在运行，我明白了，原来，shutdown -p 不能在系统锁定的时候自动执行。<br />那么怎么才能关闭系统呢？<br />用了如下命令，<br />shutdown -s -f -t 0<br />这个命令时强制关闭系统，添加了一个作业<br />at 10:00 shutdown -s -f -t 0<br />在系统不锁定的情况下，一定能用，所以我就测试了一下在锁定状态下，能否有效。<br />锁定机器，果然，在10：00，机器还是自动关闭了。<br />所以，如果你也想让机器自动关闭的话，也不妨可以尝试一下：<br /><br />at  23:20(your time) shutdown -s -f -t 0<br />就可以搞定了。<br /><br /><img src ="http://www.blogjava.net/zhyiwww/aggbug/141631.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/zhyiwww/" target="_blank">zhyiwww</a> 2007-08-31 10:02 <a href="http://www.blogjava.net/zhyiwww/archive/2007/08/31/141631.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>windows下查找文件的命令</title><link>http://www.blogjava.net/zhyiwww/archive/2007/08/23/138904.html</link><dc:creator>zhyiwww</dc:creator><author>zhyiwww</author><pubDate>Thu, 23 Aug 2007 10:13:00 GMT</pubDate><guid>http://www.blogjava.net/zhyiwww/archive/2007/08/23/138904.html</guid><wfw:comment>http://www.blogjava.net/zhyiwww/comments/138904.html</wfw:comment><comments>http://www.blogjava.net/zhyiwww/archive/2007/08/23/138904.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/zhyiwww/comments/commentRss/138904.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/zhyiwww/services/trackbacks/138904.html</trackback:ping><description><![CDATA[想在windows下使用命令来查找文件，可以使用如下命令：where<br />命令的格式如下：<br /><br />WHERE [/R dir] [/Q] [/F] [/T] pattern...<br /><br />Description:<br />    Displays the location of files that match the search pattern.<br />    By default, the search is done along the current directory and<br />    in the paths specified by the PATH environment variable.<br /><br />Parameter List:<br />    /R       Recursively searches and displays the files that match the<br />             given pattern starting from the specified directory.<br /><br />    /Q       Returns only the exit code, without displaying the list<br />             of matched files. (quite mode)<br /><br />    /F       Displays the matched filename in double quotes.<br /><br />    /T       Displays the file size, last modified date and time for all<br />             matched files.<br /><br />    pattern  Specifies the search pattern for the files to match.<br />             Wildcards * and ? can be used in the pattern. The<br />             "$env:pattern" and "path:pattern" formats can also be<br />             specified, where "env" is an environment variable and<br />             the search is done in the specified paths of the "env"<br />             environment variable. These formats should not be used<br />             with /R. The search is also done by appending the<br />             extensions of the PATHEXT variable to the pattern.<br /><br />     /?      Displays this help message.<br /><br />  NOTE: The tool returns an error level of 0 if the search is<br />        successful, of 1 if the search is unsuccessful and<br />        of 2 for failures or errors.<br /><br />Examples:<br />    WHERE /?<br />    WHERE myfilename1 myfile????.*<br />    WHERE $windir:*.* <br />    WHERE /R c:\windows *.exe *.dll *.bat  <br />    WHERE /Q ??.??? <br />    WHERE "c:\windows;c:\windows\system32:*.dll"<br />    WHERE /F /T *.dll <br /><br />我们想查找文件内容的命令是：find或者findstr<br />在linux下的查找文件的命令也是 :  where <br />也可以使用find -name <br />查找文件的内容的话，可以使用grep ,支持正则表达式，使用起来也很方便，再加上管道，有的时候会觉得特别的方便和快捷。<br /><img src ="http://www.blogjava.net/zhyiwww/aggbug/138904.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/zhyiwww/" target="_blank">zhyiwww</a> 2007-08-23 18:13 <a href="http://www.blogjava.net/zhyiwww/archive/2007/08/23/138904.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>关于windows的文件夹的访问权限设置的问题</title><link>http://www.blogjava.net/zhyiwww/archive/2007/06/03/121707.html</link><dc:creator>zhyiwww</dc:creator><author>zhyiwww</author><pubDate>Sun, 03 Jun 2007 15:58:00 GMT</pubDate><guid>http://www.blogjava.net/zhyiwww/archive/2007/06/03/121707.html</guid><wfw:comment>http://www.blogjava.net/zhyiwww/comments/121707.html</wfw:comment><comments>http://www.blogjava.net/zhyiwww/archive/2007/06/03/121707.html#Feedback</comments><slash:comments>8</slash:comments><wfw:commentRss>http://www.blogjava.net/zhyiwww/comments/commentRss/121707.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/zhyiwww/services/trackbacks/121707.html</trackback:ping><description><![CDATA[我做了一个试验，相测试一个结果：如果我给一个文件夹设置的仅有的一个用户的访问权限，那么，如果这个用户不能登陆系统的话，是否还能访问这个文件夹？假设说，文件夹test的用户权限为，仅能test用户能访问，那么如果，test用户的系统崩溃了，那么我删掉了test用户，然后我再新建一个test用户，我还能访问到文件夹吗test的内容吗？<br />我不知道答案，所以，就测试了一下，步骤和结果如下：<br />当天是用户test登陆系统，然后在D:\下新建了一个文件夹Test<br /><img height="407" alt="1.png" src="http://www.blogjava.net/images/blogjava_net/zhyiwww/windows/permission/1.png" width="792" border="0" /><br />我向文件夹里面复制了一个文件，以作测试<br /><img height="340" alt="2.png" src="http://www.blogjava.net/images/blogjava_net/zhyiwww/windows/permission/2.png" width="585" border="0" /><br /><br />下面，我设置此文件夹的访问权限，里面的几个用户，除了test用户的访问权限我都要去掉，但是，此时我却删不掉那几个用户，为什么呢？<br />因为，其他的几个用户从其根用户那里继承到了文件的访问权限，我们不能删掉，至于是为什么，我也不知道。但是如下图所示，在高级里面，我们把那个下面的那个复选框去掉，然后，系统就会给我们一个提示，选择“复制”之后，我们就可以删掉其他的几个用户的权限了。<br /><br /><img height="509" alt="3.png" src="http://www.blogjava.net/images/blogjava_net/zhyiwww/windows/permission/3.png" width="1029" border="0" /><br /><br /><img height="441" alt="4.png" src="http://www.blogjava.net/images/blogjava_net/zhyiwww/windows/permission/4.png" width="921" border="0" /><br /><br />删除了其他的几个用户的权限之后，效果如下图<br /><br /><img height="445" alt="5.png" src="http://www.blogjava.net/images/blogjava_net/zhyiwww/windows/permission/5.png" width="366" border="0" /><br /><br />但是此时，连test用户自己也没有了访问权限，我们把test的访问权限添加上，结果如下图<br /><br /><img height="434" alt="6.png" src="http://www.blogjava.net/images/blogjava_net/zhyiwww/windows/permission/6.png" width="360" border="0" /><br /><br />此时，我们除了在test用户登录的情况下，可以访问Test文件夹外，是任何其他用户都不能访问的。下面是我们使用其他用户访问时的错误提示：<br /><img height="488" alt="7.png" src="http://www.blogjava.net/images/blogjava_net/zhyiwww/windows/permission/7.png" width="637" border="0" /><br /><br />所以，我就把test用户给删掉了，然后再访问，结果，还是不能访问<br /><br /><img height="531" alt="8.png" src="http://www.blogjava.net/images/blogjava_net/zhyiwww/windows/permission/8.png" width="688" border="0" /><br /><br />那么，我想知道，如果我再新建一个test用户，也就是一个以前设置了权限的相同用户名的用户，还能访问吗？<br />所以我就又重新新建了一个用户test,然后再一个访问Test文件夹，结果如下。<br /><img height="372" alt="9.png" src="http://www.blogjava.net/images/blogjava_net/zhyiwww/windows/permission/9.png" width="537" border="0" /><br />此时，我们可以知道，我们即使重新创建了一个以前设置了权限的用户相同的用户名的用户，还是不能访问以前的文件夹。那么，假设我们给一个重要文件夹设置了如上的访问权限，那么如果系统有出现了不能不能正常登陆和修改其他访问权限的时候，我们的重要的文件夹不就不能访问了吗？<br />那么在加上了这把锁之后，有可能也会把我们自己锁在屋里。所以，是不是我们在给自己的文件夹访问加密的时候也要小心一点了。<br /><br /><font color="#0000ff"><strong><font size="4">注：</font></strong><br /></font><font color="#008000"><strong>上面的这个问题，我现在还没有想到解决的办法，不过我觉得，这个文件夹是应该还有访问的办法，如果哪位知道的话，也不妨指教一二，更希望能有一个共同学习和提高的机会。</strong></font><br /><br /><br /><img src ="http://www.blogjava.net/zhyiwww/aggbug/121707.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/zhyiwww/" target="_blank">zhyiwww</a> 2007-06-03 23:58 <a href="http://www.blogjava.net/zhyiwww/archive/2007/06/03/121707.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>如何设置windows 2003的最大远程连接数</title><link>http://www.blogjava.net/zhyiwww/archive/2006/10/09/74052.html</link><dc:creator>zhyiwww</dc:creator><author>zhyiwww</author><pubDate>Mon, 09 Oct 2006 05:34:00 GMT</pubDate><guid>http://www.blogjava.net/zhyiwww/archive/2006/10/09/74052.html</guid><wfw:comment>http://www.blogjava.net/zhyiwww/comments/74052.html</wfw:comment><comments>http://www.blogjava.net/zhyiwww/archive/2006/10/09/74052.html#Feedback</comments><slash:comments>7</slash:comments><wfw:commentRss>http://www.blogjava.net/zhyiwww/comments/commentRss/74052.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/zhyiwww/services/trackbacks/74052.html</trackback:ping><description><![CDATA[按以下操作执行：<br /><br />开始 - &gt;<br />运行 - &gt;<br />gpedit.msc  - &gt; <br />管理模板 - &gt;  <br />Windows组件 -&gt; <br />终端服务 - &gt; <br />限制连接数量 - &gt; <br />启用 TS允许的最大连接数 。<br /><br />完成。<br />操作如下图：<br /><br /><img height="611" alt="SetConnectCount0.PNG" src="http://www.blogjava.net/images/blogjava_net/zhyiwww/windows/SetConnectCount0.PNG" width="841" border="0" /><br /><br /><br /><img height="442" alt="SetConnectCount1.PNG" src="http://www.blogjava.net/images/blogjava_net/zhyiwww/windows/SetConnectCount1.PNG" width="418" border="0" /><br /><img src ="http://www.blogjava.net/zhyiwww/aggbug/74052.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/zhyiwww/" target="_blank">zhyiwww</a> 2006-10-09 13:34 <a href="http://www.blogjava.net/zhyiwww/archive/2006/10/09/74052.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>