日志分类:MISC
已有五年未用批处理命令,没想到今天却有用途,回顾一下吧~
Echo XXX:显示XXX在屏幕上,若不想显示此句本身,应与Echo on/off联用,得到满意的显示效果。
Echo on/off: 此命令引用间的所有Dos命令,均不显示命令行本身,只显示结果。
@Echo:直接具有 Echo on 的效果,@ 与echo off相象,但它是加在其它命令行的最前面,表示运行时不显示命令行本身。
rem 表示此命令后的字符为解释行,不执行,只是给自己今后查找用的;
%表示参数,参数是指在运行批处理文件时在文件名后加的字符串。变量可以从 %0到%9,%0表示文件名本身,字符串用%1到%9顺序表示。 如C:根目录下一批处理文件的名为t.bat,内容为 type %1 type %2 ,那么运行C:\>t a.txt b.txt 将顺序地显示a.txt和b.txt文件的内容。
echo 打印显示文字,表示显示此命令后的字符,你可以增加一些提示。
echo off 表示在此语句后所有运行的命令都不显示命令行本身
@ 与 echo off 相象,但它是加在其它命令行的最前面,表示运行时不显示命令行本身,针对相应一行。
set 设置“变量”。方法:set qqqq=aa 令“qqqq”的值设置为“aa”,调用的时候要用 %qqqq% 。
call 调用另一条批处理文件(如果直接调用别的批处理文件 ,执行完那条文件后将无法执行当前文件后续命令) ...
发表评论 »
For Notepad2 lovers who want to use Notepad2 in Windows Vista as Notepad replacement to completely replace the default classic yet not much functionality Notepad, they can follow this hack. However, if you do not want to do the steps manually, here’s a auto installation script for Notepad2 in Windows ...
发表评论 »
Notepad2 is a minimalist program which consists of an executable and a configuration file. Since there is no installer for Notepad2, and no registry key added, so you would have to launch Notepad2 first before you can open or edit a document or text file. ...
发表评论 »
One of the weak link in Windows operating system back from even Windows 9x era is Notepad application, the default text editor. And with the release of Windows Vista, one would have believed that Notepad will be updated or upgraded to a new Notepad with more features in some way ...
发表评论 »