
比如,在启动wps软件时,每次都必须执行
C:\>cd wps
C:\WPS>spdos
C:\WPS>py
C:\WPS>wbx
C:\WPS>wps
如果每次用WPS之前都这样执行一次,您是不是觉得很麻烦呢?
如果有一个方法,只需编写一个批处理文件,就会自动执行刚才的所有命令,您想不想学呢?
当您看完此节,自己编写的第一个批处理文件顺利执行时,您一定会大吃一惊的。
此外电脑每次启动时都悔悔会寻找autoexec.bat这条批处理文件,从而可执行一些每次开机都要执行的命令,如设置路径path、加载鼠标驱动mouse、磁盘加速smartdrv等,可以使您的电脑真正自搜液动化。
echo、@、call、pause、rem 是批处理文件最常用的几个命令,我们就从他们开始学起。 echo 表示显示此命令后的字世前物符
echo off 表示在此语句后所有运行的命令都不显示命令行本身
@ 与echo off相象,但它是加在其它命令行的最前面,表示运行时不显示命令行本身。
call 调用另一条批处理文件(如果直接调用别的批处理文件 ,执行完那条文件后将无法执行当前文件后续命令)
pause 运行此句会暂停,显示Press any key to continue... 等待用户按任意键后继续
rem 表示此命令后的字符为解释行,不执行,只是给自己今后查找用的
例:用edit编辑a.bat文件,输入下列内容后存盘为c:\a.bat,执行该批处理文件后可实现:将根目录中所有文件写入 a.txt中,启动UCDOS,进入WPS等功能。
批处理文件的内容为: 文件表示:
echo off 不显示命令行
dir c:\*.* >a.txt 将c盘文件列表写入a.txt
call c:\ucdos\ucdos.bat 调用ucdos
echo 你好 显示"你好"
pause 暂停,等待按键继续
rem 使用wps 注释将使用wps
cd ucdos 进入ucdos目录
wps 使用wps
批处理文件中还可以像C语言一样使用参数,这只需用到一个参数表示符%。
%表示参数,参数是指在运行批处理文件时在文件名后加的字符串。变量可以从 %0到%9,%0表示文件名本身,字符串用%1到%9顺序表示。
例如,C:根目录下一批处理文件名为f.bat,内容为 format %1
则如果执行C:\>f a: 则实际执行的是format a:
又如C:根目录下一批处理文件的名为t.bat,内容为 type %1 type %2
那么运行C:\>t a.txt b.txt 将顺序地显示a.txt和b.txt文件的内容
if goto choice for 是批处理文件中比较高级的命令,如果这几个你用得很熟练,你就是批处理文件的专家啦。
if 表示将判断是否符合规定的条件,从而决定执行不同的命令。 有三种格式:
1、if "参数" == "字符串" 待执行的命令
参数如果等于指定的字符串,则条件成立,运行命令,否则运行下一句。(注意是两个等号)
如if "%1"=="a" format a:
2、if exist 文件名 待执行的命令
如果有指定的文件,则条件成立,运行命令,否则运行下一句。如if exist config.sys edit config.sys
3、if errorlevel 数字 待执行的命令
如果返回码等于指定的数字,则条件成立,运行命令,否则运行下一句。如if errorlevel 2 goto x2 DOS程序运行时都会返回一个数字给DOS,称为错误码errorlevel或称返回码
goto 批处理文件运行到这里将跳到goto 所指定的标号处, 一般与if配合使用。 如:
goto end
:end
echo this is the end
标号用 :字符串 表示,标号所在行不被执行
choice 使用此命令可以让用户输入一个字符,从而运行不同的命令。使用时应该加/c:参数,c:后应写提示可输入的字符,之间无空格。它的返回码为1234……
如: choice /c:dme defrag,mem,end
将显示
defrag,mem,end[D,M,E]?
例如,test.bat的内容如下:
@echo off
choice /c:dme defrag,mem,end
if errorlevel 3 goto defrag 应先判断数值最高的错误码
if errorlevel 2 goto mem
if errotlevel 1 goto end
:defrag
c:\dos\defrag
goto end
:mem
mem
goto end
:end
echo good bye
此文件运行后,将显示 defrag,mem,end[D,M,E]? 用户可选择d m e ,然后if语句将作出判断,d表示执行标号为defrag的程序段,m表示执行标号为mem的程序段,e表示执行标号为end的程序段,每个程序段最后都以goto end将程序跳到end标号处,然后程序将显示good bye,文件结束。
for 循环命令,只要条件符合,它将多次执行同一命令。
格式FOR [%%f] in (集合) DO [命令]
只要参数f在指定的集合内,则条件成立,执行命令
如果一条批处理文件中有一行:
for %%c in (*.bat *.txt) do type %%c
含义是如果是以bat或txt结尾的文件,则显示文件的内容。
autoexec.bat
DOS在启动会自动运行autoexec.bat这条文件,一般我们在里面装载每次必用的程序,如: path(设置路径)、smartdrv(磁盘加速)、 mouse(鼠标启动)、mscdex(光驱连接)、 doskey(键盘管理)、set(设置环境变量)等。
如果启动盘根目录中没有这个文件,电脑会让用户输入日期和时间。
例如,一个典型的autoexec.bat内容如下:
@echo off 不显示命令行
prompt $p$g 设置提示符前有目录提示
path c:\dosc:\c:\windowsc:\ucdosc:\tools 设置路径
lh c:\dos\doskey.com 加载键盘管理
lh c:\mouse\mouse.com 加载鼠标管理
lh c:\dos\smartdrv.exe 加载磁盘加速管理
lh c:\dos\mscdex /S /D:MSCD000 /M:12 /V 加载CD-ROM驱动
set temp=c:\temp 设置临时目录
gpedit.msc-----组策略 sndrec32-------录音机Nslookup-------IP地址侦测器e xplorer-------打开资源中绝斗管理器
logoff---------注销命令 tsshutdn-------60秒倒计时关机命令
lusrmgr.msc----本机用户和组 services.msc---本地服务设置
oobe/msoobe /a----检查XP是否激活notepad--------打开记事本
cleanmgr-------垃圾整理 net start messenger----开始信使服务
compmgmt.msc---计算机管理net stop messenger-----停止信使服务
conf-----------启动netmeeting dvdplay--------DVD播放器
charmap--------启动字符映射表 diskmgmt.msc---磁盘管理实用程序
calc-----------启动计算器 dfrg.msc-------磁盘碎片整理程序
chkdsk.exe-----Chkdsk磁盘检查 devmgmt.msc--- 设备管理器
regsvr32 /u *.dll----停止dll文件运行 drwtsn32------ 系统医生
rononce -p ----15秒关机 dxdiag---------检查DirectX信息
regedt32-------注册表编辑器Msconfig.exe---系统配置实用程序
rsop.msc-------组策略结果集 mem.exe--------显示内存使用情况
regedit.exe----注册表winchat--------XP自带局域网聊天
progman--------程序管理器 winmsd---------系统信息
perfmon.msc----计算机性能监测程序 winver---------检查Windows版本
sfc /scannow-----扫描错误并复原 winipcfg-------IP配置
taskmgr-----任务管理器(2000/xp/2003) command--------cmd
fsmgmt.msc 共享文件夹 netstat -an----查看端口
osk 屏幕键盘 install.asp----修改注册网页
eventvwr.msc 事件查看器
secpol.msc 本地安全设置
services.msc 服务
2K
accwiz.exe >辅助工具向导
acsetups.exe >acs setup dcom server executable
actmovie.exe >直接显示安装工具
append.exe >允许程序打开制定目录中的数据
arp.exe >显示和更改计算机的ip与硬件物理地址的对应列表
at.exe >计划运行任务
atmadm.exe >调用管理器卖磨统计
attrib.exe >显示和宏差更改文件和文件夹属性
autochk.exe >检测修复文件系统
autoconv.exe >在启动过程中自动转化系统
autofmt.exe >在启动过程中格式化进程
autolfn.exe >使用长文件名格式
bootok.exe >boot acceptance application for registry
bootvrfy.exe >通报启动成功
cacls.exe >显示和编辑acl
calc.exe >计算器
cdplayer.exe >cd播放器
change.exe >与终端服务器相关的查询
charmap.exe >字符映射表
chglogon.exe >启动或停用会话记录
chgport.exe >改变端口(终端服务)
chgusr.exe >改变用户(终端服务)
chkdsk.exe >磁盘检测程序
chkntfs.exe >磁盘检测程序
cidaemon.exe >组成ci文档服务
cipher.exe >在ntfs上显示或改变加密的文件或目录
cisvc.exe >索引内容
ckcnv.exe >变换cookie
cleanmgr.exe >磁盘清理
cliconfg.exe >sql客户网络工具
clipbrd.exe >剪贴簿查看器
clipsrv.exe >运行clipboard服务
clspack.exe >建立系统文件列表清单
cluster.exe >显示域的集群
_cmd_.exe >没什么好说的!
cmdl32.exe >自动下载连接管理
cmmgr32.exe >连接管理器
cmmon32.exe >连接管理器监视
cmstp.exe >连接管理器配置文件安装程序
comclust.exe >集群
comp.exe >比较两个文件和文件集的内容*
compact.exe >显示或改变ntfs分区上文件的压缩状态
conime.exe >ime控制台
control.exe >控制面板
convert.exe >转换文件系统到ntfs
convlog.exe >转换iis日志文件格式到ncsa格式
cprofile.exe >转换显示模式
cscript.exe >较本宿主版本
csrss.exe >客户服务器runtime进程
csvde.exe >日至格式转换程序
dbgtrace.exe >和terminal server相关
dcomcnfg.exe >dcom配置属性
dcphelp.exe >?
dcpromo.exe >ad安装向导
ddeshare.exe >dde共享
ddmprxy.exe >
debug.exe >就是debug啦!
dfrgfat.exe >fat分区磁盘碎片整理程序
dfrgntfs.exe >ntfs分区磁盘碎片整理程序
dfs_cmd_.exe >配置一个dfs树
dfsinit.exe >分布式文件系统初始化
dfssvc.exe >分布式文件系统服务器
diantz.exe >制作cab文件
diskperf.exe >磁盘性能计数器
dllhost.exe >所有com+应用软件的主进程
dllhst3g.exe >
dmadmin.exe >磁盘管理服务
dmremote.exe >磁盘管理服务的一部分
dns.exe >dns applications dns
doskey.exe >命令行创建宏
dosx.exe >dos扩展
dplaysvr.exe >直接运行帮助
drwatson.exe >华生医生错误检测
drwtsn32.exe >华生医生显示和配置管理
dtcsetup.exe >installs mdtc
dvdplay.exe >dvd播放
dxdiag.exe >direct-x诊断工具
edlin.exe >命令行的文本编辑器(历史悠久啊!)
edlin.exe >命令行的文本编辑器(历史悠久啊!)
esentutl.exe >ms数据库工具
eudcedit.exe >type造字程序
eventvwr.exe >事件查看器
evnt_cmd_.exe >event to trap translatorconfiguration tool
evntwin.exe >event to trap translator setup
exe2bin.exe >转换exe文件到二进制
expand.exe >解压缩
extrac32.exe >解cab工具
fastopen.exe >快速访问在内存中的硬盘文件
faxcover.exe >传真封面编辑
faxqueue.exe >显示传真队列
faxsend.exe >发送传真向导
faxsvc.exe >启动传真服务
fc.exe >比较两个文件的不同
find.exe >查找文件中的文本行
findstr.exe >查找文件中的行
finger.exe >一个用户并显示出统计结果
fixmapi.exe >修复mapi文件
flattemp.exe >允许或者禁用临时文件目录
fontview.exe >显示字体文件中的字体
forcedos.exe >forces a file to start in dos mode. 强制文件在dos模式下运行
freecell.exe >popular windows game 空当接龙
ftp.exe >file transfer protocol used to transfer files over a network conne
ction 就是ftp了
gdi.exe >graphic device interface 图形界面驱动
grovel.exe >
grpconv.exe >program manager group convertor 转换程序管理员组
help.exe >displays help for windows 2000 commands 显示帮助
hostname.exe >display hostname for machine. 显示机器的hostname
ie4uinit.exe >ie5 user install tool ie5用户安装工具
ieshwiz.exe >customize folder wizard 自定义文件夹向导
iexpress.exe >create and setup packages for install 穿件安装包
iisreset.exe >restart iis admin service 重启iis服务
internat.exe >keyboard language indicator applet 键盘语言指示器
ipconfig.exe >windows 2000 ip configuration. 察看ip配置
ipsecmon.exe >ip security monitor ip安全监视器
ipxroute.exe >ipx routing and source routing control program ipx路由和源路由
控制程序
irftp.exe >setup ftp for wireless communication 无线连接
ismserv.exe >intersite messaging service 安装或者删除service control manage
r中的服务
jdbgmgr.exe >microsoft debugger for java 4 java4的调试器
jetconv.exe >convert a jet engine database 转换jet engine数据库
jetpack.exe >compact jet database. 压缩jet数据库
jview.exe >command-line loader for java java的命令行装载者
krnl386.exe >core component for windows 2000 2000的核心组件
label.exe >change label for drives 改变驱动器的卷标
lcwiz.exe >license compliance wizard for local or remote systems. 许可证符合
向导
ldifde.exe >ldif cmd line manager ldif目录交换命令行管理
licmgr.exe >terminal server license manager 终端服务许可协议管理
lights.exe >display connection status lights 显示连接状况
llsmgr.exe >windows 2000 license manager 2000许可协议管理
llssrv.exe >start the license server 启动许可协议服务器
lnkstub.exe >
locator.exe >rpc locator 远程定位
lodctr.exe >load perfmon counters 调用性能计数
logoff.exe >log current user off. 注销用户
lpq.exe >displays status of a remote lpd queue 显示远端的lpd打印队列的状态,
显示被送到基于unix的服务器的打印任务
lpr.exe >send a print job to a network printer. 重定向打印任务到网络中的打印
机。通常用于unix客户打印机将打印任务发送给连接了打印设备的nt的打印机服务器。
lsass.exe >lsa executable and server dll 运行lsa和server的dll
lserver.exe >specifies the new dns domain for the default server 指定默认se
rver新的dns域
os2.exe >an os/2 warp server (os2 /o) os/2
os2srv.exe >an os/2 warp server os/2
os2ss.exe >an os/2 warp server os/2
osk.exe >on screen keyboard 屏幕键盘
packager.exe >windows 2000 packager manager 对象包装程序
pathping.exe >combination of ping and tracert 包含ping和tracert的程序
pax.exe >is a posix program and path names used as arguments must be specif
ied in posix format. use "//c/users/default" instead of "c:usersdefault."
启动便携式存档互换 (pax) 实用程序
pentnt.exe >used to check the pentium for the floating point division error
. 检查pentium的浮点错误
perfmon.exe >starts windows performance monitor 性能监视器
ping.exe >packet internet groper 验证与远程计算机的连接
posix.exe >used for backward compatibility with unix 用于兼容unix
print.exe >cmd line used to print files 打印文本文件或显示打印队列的内容。
progman.exe >program manager 程序管理器
proquota.exe >profile quota program
psxss.exe >posix subsystem application posix子系统应用程序
qappsrv.exe >displays the available application terminal servers on the net
work
在网络上显示终端服务器可用的程序
qprocess.exe >display information about processes local or remote 在本地或远
程显示进程的信息(需终端服务)
query.exe >query termserver user process and sessions 查询进程和对话
quser.exe >display information about a user logged on 显示用户登陆的信息(需
终端服务)
qwinsta.exe >display information about terminal sessions. 显示终端服务的信息
rasadmin.exe >start the remote access admin service 启动远程访问服务
rasautou.exe >creates a ras connection 建立一个ras连接
rasdial.exe >dial a connection 拨号连接
ras.exe >starts a ras connection 运行ras连接
rcp.exe >copies a file from and to a rcp service. 在 windows 2000 计算机和运
行远程外壳端口监控程序 rshd 的系统之间复制文件
rdpclip.exe >rdpclip allows you to copy and paste files between a terminal
session and client console session. 再终端和本地复制和粘贴文件
recover.exe >recovers readable information from a bad or defective disk 从坏
的或有缺陷的磁盘中恢复可读取的信息。
redir.exe >starts the redirector service 运行重定向服务
regedt32.exe >32-bit register service 32位注册服务
regini.exe >modify registry permissions from within a script 用脚本修改注册
许可
register.exe >register a program so it can have special execution character
istics. 注册包含特殊运行字符的程序
regsvc.exe >
regsvr32.exe >registers and unregister's dll's. as to how and where it regi
ster's them i dont know. 注册和反注册dll
regtrace.exe >options to tune debug options for applications failing to dum
p trace statements
trace 设置
regwiz.exe >registration wizard 注册向导
remrras.exe >
replace.exe >replace files 用源目录中的同名文件替换目标目录中的文件。
reset.exe >reset an active section 重置活动部分
rexec.exe >runs commands on remote hosts running the rexec service. 在运行
rexec 服务的远程计算机上运行命令。rexec 命令在执行指定命令前,验证远程计算机
上的用户名,只有安装了 tcp/ip 协议后才可以使用该命令。
risetup.exe >starts the remote installation service wizard. 运行远程安装向导
服务
route.exe >display or edit the current routing tables. 控制网络路由表
routemon.exe >no longer supported 不再支持了!
router.exe >router software that runs either on a dedicated dos or on an os
. 检查pentium的浮点错误
perfmon.exe >starts windows performance monitor 性能监视器
ping.exe >packet internet groper 验证与远程计算机的连接
posix.exe >used for backward compatibility with unix 用于兼容unix
print.exe >cmd line used to print files 打印文本文件或显示打印队列的内容。
progman.exe >program manager 程序管理器
proquota.exe >profile quota program
psxss.exe >posix subsystem application posix子系统应用程序
qappsrv.exe >displays the available application terminal servers on the net
work
在网络上显示终端服务器可用的程序
qprocess.exe >display information about processes local or remote 在本地或远
程显示进程的信息(需终端服务)
query.exe >query termserver user process and sessions 查询进程和对话
quser.exe >display information about a user logged on 显示用户登陆的信息(需
终端服务)
qwinsta.exe >display information about terminal sessions. 显示终端服务的信息
rasadmin.exe >start the remote access admin service 启动远程访问服务
rasautou.exe >creates a ras connection 建立一个ras连接
rasdial.exe >dial a connection 拨号连接
ras.exe >starts a ras connection 运行ras连接
rcp.exe >copies a file from and to a rcp service. 在 windows 2000 计算机和运
行远程外壳端口监控程序 rshd 的系统之间复制文件
rdpclip.exe >rdpclip allows you to copy and paste files between a terminal
session and client console session. 再终端和本地复制和粘贴文件
recover.exe >recovers readable information from a bad or defective disk 从坏
的或有缺陷的磁盘中恢复可读取的信息。
redir.exe >starts the redirector service 运行重定向服务
regedt32.exe >32-bit register service 32位注册服务
regini.exe >modify registry permissions from within a script 用脚本修改注册
许可
register.exe >register a program so it can have special execution character
istics. 注册包含特殊运行字符的程序
regsvc.exe >
regsvr32.exe >registers and unregister's dll's. as to how and where it regi
ster's them i dont know. 注册和反注册dll
regtrace.exe >options to tune debug options for applications failing to dum
p trace statements
trace 设置
regwiz.exe >registration wizard 注册向导
remrras.exe >
replace.exe >replace files 用源目录中的同名文件替换目标目录中的文件。
reset.exe >reset an active section 重置活动部分
rexec.exe >runs commands on remote hosts running the rexec service. 在运行
rexec 服务的远程计算机上运行命令。rexec 命令在执行指定命令前,验证远程计算机
上的用户名,只有安装了 tcp/ip 协议后才可以使用该命令。
risetup.exe >starts the remote installation service wizard. 运行远程安装向导
服务
route.exe >display or edit the current routing tables. 控制网络路由表
routemon.exe >no longer supported 不再支持了!
router.exe >router software that runs either on a dedicated dos or on an os
/2 system. route软件在 dos或者是os/2系统
rsh.exe >runs commands on remote hosts running the rsh service 在运行 rsh 服
务的远程计算机上运行命令
rsm.exe >mounts and configures remote system media 配置远程系统媒体
rsnotify.exe >remote storage notification recall 远程存储通知回显
rsvp.exe >resource reservation protocol 源预约协议
runas.exe >run a program as another user 允许用户用其他权限运行指定的工具和
程序
rundll32.exe >launches a 32-bit dll program 启动32位dll程序
runonce.exe >causes a program to run during startup 运行程序再开始菜单中
rwinsta.exe >reset the session subsystem hardware and software to known ini
tial values 重置会话子系统硬件和软件到最初的值
savedump.exe >does not write to e:winntuser.dmp 不写入user.dmp中
scardsvr.exe >smart card resource management server 子能卡资源管理服务器
schupgr.exe >it will read the schema update files (.ldf files) and upgrade
the schema. (part of adsi) 读取计划更新文件和更新计划
secedit.exe >starts security editor help 自动安全性配置管理
services.exe >controls all the services 控制所有服务
sethc.exe >set high contrast - changes colours and display mode logoff to s
et it back to normal 设置高对比
setreg.exe >shows the software publishing state key values 显示软件发布的国
家语言
setup.exe >gui box prompts you to goto control panel to configure system co
mponents 安装程序(转到控制面板)
setver.exe >set version for files 设置 ms-dos 子系统向程序报告的 ms-dos 版本
号
sfc.exe >system file checker test and check system files for integrity 系统
文件检查
sfmprint.exe >print services for macintosh 打印macintosh服务
sfmpsexe.exe >
sfmsvc.exe >
shadow.exe >monitor another terminal services session. 监控另外一台中端服务
器会话
详细出处参考:http://www.jb51.net/article/5003.htm
bat文件的命令和DOS命令一样的,本来就是DOS命令写的。所有的命令:
有关某个命令的详细信息,请键入
HELP
命令名
ASSOC
显示或修改文件扩展名关联。
AT
计划在计算机上运行的命令和程序。
ATTRIB
显示或更改文件属性。
BREAK
设置或清除扩展式
CTRL+C
检查。
CACLS
显示或修改文件的访问控制列表(ACLs)。
CALL
从另一个批处理程序调用这一个。
CD
显示当前目录的名称或将其更改。
CHCP
显示或设置活动代码页数。
CHDIR
显示当前目录的名称或将其更改。
CHKDSK
检查磁盘并显示状态报告。
CHKNTFS
显示或修改启动时间磁盘检查。
CLS
清除屏幕。
CMD
打开另一个
Windows
命令解释程序窗口。
COLOR
设置默认控制台前景和背景颜色。
COMP
比较两个或两套文件的内容。
COMPACT
显示或更改
NTFS
分区上文件的压缩。
CONVERT
将
FAT
卷转换成
NTFS。您不能转换
当前驱动器。
COPY
将至少一个文件复制到另一个位置。
DATE
显示或设置日期。
DEL
删除至少一个文件。
DIR
显示一个目录中的文件和子目录。
DISKCOMP
比较两个软盘的内容。
DISKCOPY
将一个软盘的内容复制到另一个软盘。
DOSKEY
编辑命令行、调用
Windows
命令并创建宏。
ECHO
显示消息,或将命册基令回显打开或关上。
ENDLOCAL
结束批文件中环境更改的本地化。
ERASE
删除至少一个文件。
EXIT
退出
CMD.EXE
程序(命令解释程序)。
FC
比较两个或两套文件,并显示
不同处。
FIND
在文件中搜索文字字符串。
FINDSTR
在文件中搜索字符串。
FOR
为一套文件中的每个文件运行一个指定的命令。
FORMAT
格式化磁盘,以便跟
Windows
使用。
FTYPE
显示或修改用于文件扩展名关联的文件类型。
GOTO
将
Windows
命令解释程序指向批处理程序
中某个标明的行。
GRAFTABL
启用
Windows
来以图像模式显示
扩展字符集。
HELP
提供
Windows
命令的帮助信息。
IF
执行批处理程序中的条件性处理。
LABEL
创建、更正枯改或删除磁盘的卷标。
MD
创建目录。
MKDIR
创建目录。
MODE
配置系统设备。
MORE
一次显示一个结果屏幕。
MOVE
将文件从一个目录移到另一个目录。
PATH
显示或设置可执行文件的搜索路径。
PAUSE
暂停批文件的处理并显示消息。
POPD
还原
PUSHD
保存的当前目录的上一个值。
打印文本文件。
PROMPT
更改
Windows
命令提示符。
PUSHD
保存当前目录,然后对其进行更改。
RD
删除目录。
RECOVER
从有问题的磁盘恢复可读信息。
REM
记录批文件或
CONFIG.SYS
中的注释。
REN
重命名文件。
RENAME
重命名文件。
REPLACE
替换文件。
RMDIR
删除目录。
SET
显示、设置或删除
Windows
环境变量。
SETLOCAL
开始批文件中环境更改的本地化。
SHIFT
更换批文件中可替换参数的位置。
SORT
对输入进行分类。
START
启动另一个窗口来运行指定的程序或命令。
SUBST
将路径跟一个驱动器号关联。
TIME
显示或设置系统时间州清谨。
TITLE
设置
CMD.EXE
会话的窗口标题。
TREE
以图形模式显示驱动器或路径的目录结构。
TYPE
显示文本文件的内容。
VER
显示
Windows
版本。
VERIFY
告诉
Windows
是否验证文件是否已正确
写入磁盘。
VOL
显示磁盘卷标和序列号。
XCOPY
复制文件和目录树。
echo
显示文本
这样写,每条
命令
空格
参数
回车换行写下一条
最后保存成.bat文件
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)