分享
 
 
 

Win2000&WinXP命令行介绍

王朝system·作者佚名  2006-01-31
窄屏简体版  字體: |||超大  

最近,被公司派到前台实习收款,有点郁闷。无聊至极,突然发现收款的机子中有一台安了win2000(其他都是98),给了我一点小小的安慰,至少这里的计算机技术是进步的。

在领导不在的时候我凑到win2000的旁边,虽然没有xp使用顺手,至少同98比起来是很好的。哈哈,这让我想起了,唐伯虎喊“美女”的时候,秋香与众人一同回头的情景。吓煞我也!

不徐了,说正题。

通过使用dos基本命令编写一个.bat的批处理程序,通过这个批处理程序输出help列出的命令的使用方法。该批处理文件的基本框架如下:

1.创建1.txt文件,保存第一条命令的含义和参数的使用方法。

2.创建2.txt文件,保存第二条命令的含义和参数的使用方法。

3.将文件1.txt和2.txt合并保存到文件1.txt。

4.输出命令之间的分割符到文件2.txt。

5.将文件1.txt和2.txt合并保存到文件1.txt。

6.对其他命令的具体含义进行输出操作,与上类似。

7.所有命令输出完后,删除文件2.txt。把文件1.txt改名。

通过上述流程可以很方便的得到help命令所列出的所有命令的含义和使用方法。下面是.bat批量文件的全部内容:

help ASSOC >1.txt

help AT >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help ATTRIB >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help BREAK >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help CACLS >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help CALL >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help CD >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help CHCP >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help CHDIR >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help CHKDSK >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help CHKNTFS >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help CLS >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help CMD >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help COLOR >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help COMP >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help COMPACT >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help CONVERT >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help COPY >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help DATE >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help DEL >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help DIR >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help DISKCOMP >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help DISKCOPY >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help DOSKEY >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help ECHO >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help ENDLOCAL >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help ERASE >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help EXIT >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help FC >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help FIND >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help FINDSTR >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help FOR >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help FORMAT >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help FTYPE >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help GOTO >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help GRAFTABL >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help HELP >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help IF >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help LABEL >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help MD >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help MKDIR >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help MODE >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help MORE >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help MOVE >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help PATH >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help PAUSE >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help POPD >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help PRINT >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help PROMPT >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help PUSHD >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help RD >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help RECOVER >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help REM >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help REN >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help RENAME >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help REPLACE >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help RMDIR >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help SET >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help SETLOCAL >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help SHIFT >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help SORT >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help START >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help SUBST >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help TIME >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help TITLE >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help TREE >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help TYPE >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help VER >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help VERIFY >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help VOL >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

help XCOPY >2.txt

copy 1.txt+2.txt 1.txt

echo --------------------------------------------------------------------- >2.txt

copy 1.txt+2.txt 1.txt

del 2.txt

ren 1.txt win2000_command.txt

拷贝以上内容并保存为.bat文件,双击后即可得到win2000_command.txt文件,其中的内容一看便知,这里就不多说了,下面简单介绍一下批处理文件中使用到的命令。

help ASSOC >1.txt //输出命令ASSOC的含义到1.txt,与 ASSOC/? >1.txt 的效果是一样的

copy 1.txt+2.txt 1.txt //把文件2.txt中的内容追加到1.txt后

echo --------------------------------------------------------------------- >2.txt //输出一行分割符到文件2.txt

由于运行后所得win2000_command.txt文件中的内容太多,所以将另建文件叙述。如果批处理程序连续运行两次(期间没有删除第一次运行的结果文件win2000_command.txt),将在第二次运行后产生另一个新文件1.txt,其内容与第一次运行的结果文件相同。这是由于第一次运行后没有删除产生的结果文件win2000_command.txt,所以在对第二次运行后的结果文件改名时因为已经存在一个win2000_command.txt文件所以改名不成功,系统会抛出异常,改名不成功,所以就多了改名前的结果文件。

以上内容在xp中同样可用,xp中help所列出的命令与2000是相同的。

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有