参考:bat批处理的注释语句
打开文件夹:
- start D:\abc
- 打开D盘abc文件夹
打开exe文件:
- D:\Windows-Linux\putty.exe
- putty.exe【在同一个文件夹内】
输出空行:
- echo.
- 参考:批处理 ECHO命令输出空行
切换到 D 盘:
C:\Users\Alex>D: D:\>cd D:\MODISPRO D:\MODISPRO>
注释:
- ::,双引号可以用来注释;
- %注释内容%,百分号之间用来注释。
Command-line reference A-Z
To find information about a specific command, in the following A-Z menu, click the letter that the command starts with, and then click the command name.
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z
A
B
- bcdboot
- bcdedit
- bdehdcfg
- bitsadmin
- bitsadmin addfile
- bitsadmin addfileset
- bitsadmin addfilewithranges
- bitsadmin cancel
- bitsadmin complete
- bitsadmin create
- bitsadmin getaclflags
- bitsadmin getbytestotal
- bitsadmin getbytestransferred
- bitsadmin getcompletiontime
- bitsadmin getcreationtime
- bitsadmin getdescription
- bitsadmin getdisplayname
- bitsadmin geterror
- bitsadmin geterrorcount
- bitsadmin getfilestotal
- bitsadmin getfilestransferred
- bitsadmin getminretrydelay
- bitsadmin getmodificationtime
- bitsadmin getnoprogresstimeout
- bitsadmin getnotifycmdline
- bitsadmin getnotifyflags
- bitsadmin getnotifyinterface
- bitsadmin getowner
- bitsadmin get priority
- bitsadmin getproxybypasslist
- bitsadmin getproxylist
- bitsadmin getproxyusage
- bitsadmin getreplydata
- bitsadmin getreplyfilename
- bitsadmin getreplyprogress
- bitsadmin getstate
- bitsadmin gettype
- bitsadmin help
- bitsadmin info
- bitsadmin list
- bitsadmin listfiles
- bitsadmin monitor
- bitsadmin nowrap
- bitsadmin rawreturn
- bitsadmin removecredentials
- bitsadmin replaceremoteprefix
- bitsadmin reset
- bitsadmin resume
- bitsadmin setaclflag
- bitsadmin setcredentials
- bitsadmin setdescription
- bitsadmin setdisplayname
- bitsadmin setminretrydelay
- bitsadmin setnoprogresstimeout
- bitsadmin setnotifycmdline
- bitsadmin setnotifyflags
- bitsadmin setpriority
- bitsadmin setproxysettings
- bitsadmin setreplyfilename
- bitsadmin suspend
- bitsadmin takeownership
- bitsadmin Transfer
- bitsadmin util
- bitsadmin wrap
- bootcfg
- break
C
- cacls
- call
- cd参考:cmd怎么进入d盘
- certreq
- certutil
- change
- chcp
- chdir
- chglogon
- chgport
- chgusr
- chkdsk
- chkntfs
- choice
- cipher
- clip
- cls
- Cmd
- cmdkey
- cmstp
- color
- comp
- compact
- convert
- copy
- cprofile
- cscript
D
- date
- dcgpofix
- defrag
- del
- dfsrmig
- diantz
- dir
- diskcomp
- diskcopy
- diskperf
- diskraid
- diskshadow
- dispdiag
- dnscmd
- doskey
- driverquery
E
F
G
H
I
J
K
- klist
- ksetup
- ksetup:setrealm
- ksetup:mapuser
- ksetup:addkdc
- ksetup:delkdc
- ksetup:addkpasswd
- ksetup:delkpasswd
- ksetup:server
- ksetup:setcomputerpassword
- ksetup:removerealm
- ksetup:domain
- ksetup:changepassword
- ksetup:listrealmflags
- ksetup:setrealmflags
- ksetup:addrealmflags
- ksetup:delrealmflags
- ksetup:dumpstate
- ksetup:addhosttorealmmap
- ksetup:delhosttorealmmap
- ksetup:setenctypeattr
- ksetup:getenctypeattr
- ksetup:addenctypeattr
- ksetup:delenctypeattr
- ktmutil
- ktpass
L
M
- macfile
- makecab
- manage-bde
- manage-bde: status
- manage-bde: on
- manage-bde: off
- manage-bde: pause
- manage-bde: resume
- manage-bde: lock
- manage-bde: unlock
- manage-bde: autounlock
- manage-bde: protectors
- manage-bde: tpm
- manage-bde: setidentifier
- manage-bde: ForceRecovery
- manage-bde: changepassword
- manage-bde: changepin
- manage-bde: changekey
- manage-bde: KeyPackage
- manage-bde: upgrade
- manage-bde: WipeFreeSpace
- mapadmin
- Md
- mkdir
- mklink
- mmc
- mode
- more
- mount
- mountvol
- move
- mqbkup
- mqsvc
- mqtgsvc
- msdt
- msg
- msiexec
- msinfo32
- mstsc
N
- nbtstat
- netcfg
- netsh
- netstat
- Net print
- nfsadmin
- nfsshare
- nfsstat
- nlbmgr
- nslookup
- nslookup exit command
- nslookup finger command
- nslookup help
- nslookup ls
- nslookup lserver
- nslookup root
- nslookup server
- nslookup set
- nslookup set all
- nslookup set class
- nslookup set d2
- nslookup set debug
- nslookup set domain
- nslookup set port
- nslookup set querytype
- nslookup set recurse
- nslookup set retry
- nslookup set root
- nslookup set search
- nslookup set srchlist
- nslookup set timeout
- nslookup set type
- nslookup set vc
- nslookup view
- ntbackup
- ntcmdprompt
- ntfrsutl
O
P
- pagefileconfig
- path
- pathping
- pause
- pbadmin
- pentnt
- perfmon
- ping
- pnpunattend
- pnputil
- popd
- PowerShell
- PowerShell_ise
- prncnfg
- prndrvr
- prnjobs
- prnmngr
- prnport
- prnqctl
- prompt
- pubprn
- pushd
- pushprinterconnections
Q
R
- rcp
- rd
- rdpsign
- recover
- reg
- regini
- regsvr32
- relog
- rem
- ren
- rename
- repair-bde
- replace
- reset session
- rexec
- risetup
- rmdir
- robocopy
- route_ws2008
- rpcinfo
- rpcping
- rsh
- rundll32
- rwinsta
S
- schtasks
- scwcmd
- secedit
- serverceipoptin
- Servermanagercmd
- serverweroptin
- set
- setlocal
- setx
- sfc
- shadow
- shift
- showmount
- shutdown
- sort
- start
- subst
- sxstrace
- sysocmgr
- systeminfo
T
- takeown
- tapicfg
- taskkill
- tasklist
- tcmsetup
- telnet
- tftp
- time
- timeout
- title
- tlntadmn
- tpmvscmgr
- tracerpt
- tracert
- tree
- tscon
- tsdiscon
- tsecimp
- tskill
- tsprof
- type
- typeperf
- tzutil
U
V
W
- waitfor
- wbadmin
- wbadmin enable backup
- wbadmin disable backup
- wbadmin start backup
- wbadmin stop job
- wbadmin get versions
- wbadmin get items
- wbadmin start recovery
- wbadmin get status
- wbadmin get disks
- wbadmin start systemstaterecovery
- wbadmin start systemstatebackup
- wbadmin delete systemstatebackup
- wbadmin start sysrecovery
- wbadmin restore catalog
- wbadmin delete catalog
- wdsutil
- wecutil
- wevtutil
- where
- whoami
- winnt
- winnt32
- winpop
- winrs
- wlbs
- wmic
- wscript