控制命令行的回显
<p>请教了</p><p>C#如何控制命令行回显的开和关</p> <p>cmdecho系统变量</p>
<p> </p>
<p><font face="Verdana"> /// <summary><br/> /// 控制命令行回显<br/> /// </summary><br/> public static bool CmdEcho<br/> {<br/> get<br/> {<br/> return (int)Application.GetSystemVariable("cmdecho") == 1;<br/> }<br/> set<br/> {<br/> Application.SetSystemVariable("cmdecho", Convert.ToInt16(value));<br/> }<br/> }</font></p> 本帖最后由 chpmould 于 2010-11-29 19:41 编辑 <br /><br /><P>谢谢,问题已解决...</P>
<P>另请教LISP中蒱捉<FONT face=Verdana>(setvar "osmode" 0)开和关如何写...</FONT></P> <p>Application.GetSystemVariable("osmode");</p>
<p>Application.SetSystemVariable("osmode", ival);</p> 本帖最后由 chpmould 于 2010-11-29 19:40 编辑 <br /><br /><DIV id=textstyle_4 style="FONT-SIZE: 12pt; OVERFLOW: hidden; WORD-BREAK: break-all; TEXT-INDENT: 0px; WORD-WRAP: break-word">
<P>狐哥,再请教了</P>
<P>Application.GetSystemVariable("osmode");这句是什么意思,怎么用的</P>
<P> </P></DIV> <pre class="Element100"><strong><div class="Element5">Application.GetSystemVariable Method</div></strong></pre><pre class="Element100"><strong>public</strong> <strong>static</strong> <strong>object</strong> <strong>GetSystemVariable</strong>(
<strong>string</strong> <strong>name</strong>
);</pre>
<p>
<table class="Table2" cellspacing="0">
<tbody>
<tr>
<td class="Element242" valign="top" width="50%">
<div class="Element243">string name </div></td>
<td class="Element246" valign="top" width="50%">
<div class="Element247">Input the name of the system variable to get. </div></td></tr></tbody></table></p>
<p> </p>
<p class="Element10">Returns the system variable.</p> 谢谢,我明白了。。。 谢谢,我也明白了.
页:
[1]