basic commands:
1. d: ----change drive
2. dir ----list file
3. cd ----come to a directory
4. copy ----copy a file or many files
5. type ----show file conment
6. ren ----rename a file
7. del ----delete a file
8. cls ----clear the screen
9. xcopy ----copy a group of files in a directory
10.attrib ----show or change file''s charckter
11.edit ----a editor for write a file
12.chkdsk ----check a disk
13.tree ----list directory tree
14.format ----format a disk for dos
15.md ----make a directory
16.rd ----delete a directory
17.deltree ----delete a directory with all it''s sub directory
18.time ----show system time
19.prompt ----change the prompt
ok! now base use-way:
1. d: ----c:>d:a: ----change to drive a:
2. dir ----c:>dir[d:][path][filename[.ext]][/p][/w]
eg: c:>dir a: ----list files in disk a
c:>dir l*.* ----list files whose first letter is "l"
c:>dir/w/p ----list files as wide ( 5 files in a line)
and page
****** c:>dir , ----list
****** c:>dir/a
3. cd ----c:>cd [d:][path]
eg: c:>cd yln ----come to directory named as "yln"
c:yln>cd.. ----come back pre-directory
c:>cd yln\tool ----come to multiple(deep layer) directory
c:yln\tool\cd\..\game ---- turn to another directory
4. copy ----c:>copy [d:][path]file1[.ext] [d:][path]file2[.ext][/a][/v]
eg: c:yln\tool>copy qe.exe a: ----copy qe.exe to sidk a
c:yln\wps>copy xue1.wps+xue2.wps xue3.wps
---- let xue1.wps and xue2.wps 合成 a new
file named as xue3.wps
c:yln\wps>copy xue1.wps xue01.wps ---- copy xue1.wps as new
name
5. type ----c:>type [d:][path]filename[.ext][|more]
eg: c:yln\wps>type hlp.txt|more ----show hlp.txt when a page
full then pause and wait
you press any key continue
6. ren ----c:>ren [d:][path]file1[.ext] file2[.ext]
eg: c:>ren a.bat b.bat ----a.bat rename to b.bat
7. del ----c:>del [d:][path]filename[.ext]
eg: c:>del c:\yln\wps\xue1.bak ----del the file named xue1.bak
8. cls ----c:>cls ----clear the screen
9. xcopy ----c:>xcopy [d:][path] [d:][path] [/s][/e]
eg: c:yln>xcopy \wps /s/e ----copy the directory "wps" and all
it''s sub-directory enclude empty
sub-directory
10. attrib ----c:>attrib[+h][-h][+r][-r][+s][-s][+a][-a][d:][path]filename
eg: c:yln\wps>attrib +h +r xue1.wps----set file attrib (hide,readonly)
11. edit ----c:>edit [d:][path][filename][.ext]
eg: c:>edit \yln\wps\wue3.txt ----edit file wue3.txt
12. chedsk ----c:>chkdsk [d:] ----check d:
13. tree ----c:>tree [d:] ----show d:''s directory
14. format ----c:>format [d:] ----format d: for dos
15. md ----c:>md directory-name ----make a new directory
16. rd ----c:>rd directory
eg: c:>rd yln ----delete directory named yln
(the directory that will be delete MUST be empty.)
17. deltree ----c:>deltree [d:][directory][/y]
eg: c:>deltree yln/y ----delete directory named yln ,and No ask for your affirm [Very Danger,use it careful]
18. time ----c:>time ----ask the system time,and change the time
19. prompt ----c:>prompt $p$g ----set the prompt in this format: d:\current-path>
也是俺以前写的,现在翻出来充数的。呵呵。。。
[此贴子已经被Wengier于2003-10-7 22:59:14编辑过]
作者: leslie 时间: 2003-6-21 00:00 怎么没有中文版啊:(作者: hunome 时间: 2003-6-21 00:00 1. d: ----change drive 更换盘符
2. dir ----list file 察看目录和文件
3. cd ----come to a directory 进入一个目录
4. copy ----copy a file or many files 复制文件
5. type ----show file conment 屏幕显示文件内容
6. ren ----rename a file 给文件改名
7. del ----delete a file 删除文件
8. cls ----clear the screen 清屏
9. xcopy ----copy a group of files in a directory copy的增强版,可复制目录和文件 10.attrib ----show or change file's charckter 显示和改变文件属性
11.edit ----a editor for write a file 打开文本编辑器
12.chkdsk ----check a disk 检查磁盘
13.tree ----list directory tree 显示所有目录
14.format ----format a disk for dos 格式化磁盘
15.md ----make a directory 新建目录
16.rd ----delete a directory 删除空目录
17.deltree ----delete a directory with all it's sub directory 删除目录内所有内容
18.time ----show system time 显示或修改时间
19.prompt ----change the prompt 改变提示符
@ Copyright (C) 1990-1999 Microsoft Corporation. All rights reserved.
@ This is the DOS general help file. It contains a brief
@ description of each command supported by the DOS help command.
@ Type HELP with no arguments to display the text in this file.
@ Lines beginning with @ are comments, and are ignored by HELP.
@ This file may be modified to add new commands. If the HELP command-name
@ form is to be used, any new commands should support the /? parameter.
@ New commands should start in the first column. Any extra lines needed
@ for a command description should be preceded by white space. Commands
@ must be added in alphabetical order.
ASSOC Displays or modifies file extension associations
AT Schedules commands and programs to run on a computer.
ATTRIB Displays or changes file attributes.
BREAK Sets or clears extended CTRL+C checking.
CACLS Displays or modifies access control lists (ACLs) of files.
CALL Calls one batch program from another.
CD Displays the name of or changes the current directory.
CHCP Displays or sets the active code page number.
CHDIR Displays the name of or changes the current directory.
CHKDSK Checks a disk and displays a status report.
CHKNTFS Displays or modifies the checking of disk at boot time.
CLS Clears the screen.
CMD Starts a new instance of the Windows 2000 command interpreter.
COLOR Sets the default console foreground and background colors.
COMP Compares the contents of two files or sets of files.
COMPACT Displays or alters the compression of files on NTFS partitions.
CONVERT Converts FAT volumes to NTFS. You cannot convert the
current drive.
COPY Copies one or more files to another location.
DATE Displays or sets the date.
DEL Deletes one or more files.
DIR Displays a list of files and subdirectories in a directory.
DISKCOMP Compares the contents of two floppy disks.
DISKCOPY Copies the contents of one floppy disk to another.
DOSKEY Edits command lines, recalls Windows 2000 commands, and creates macros.
ECHO Displays messages, or turns command echoing on or off.
ENDLOCAL Ends localization of environment changes in a batch file.
ERASE Deletes one or more files.
EXIT Quits the CMD.EXE program (command interpreter).
FC Compares two files or sets of files, and displays the differences
between them.
FIND Searches for a text string in a file or files.
FINDSTR Searches for strings in files.
FOR Runs a specified command for each file in a set of files.
FORMAT Formats a disk for use with Windows 2000.
FTYPE Displays or modifies file types used in file extension associations.
GOTO Directs the Windows 2000 command interpreter to a labeled line in a
batch program.
GRAFTABL Enables Windows 2000 to display an extended character set in graphics
mode.
HELP Provides Help information for Windows 2000 commands.
IF Performs conditional processing in batch programs.
LABEL Creates, changes, or deletes the volume label of a disk.
MD Creates a directory.
MKDIR Creates a directory.
MODE Configures a system device.
MORE Displays output one screen at a time.
MOVE Moves one or more files from one directory to another directory.
PATH Displays or sets a search path for executable files.
PAUSE Suspends processing of a batch file and displays a message.
POPD Restores the previous value of the current directory saved by PUSHD.
PRINT Prints a text file.
PROMPT Changes the Windows 2000 command prompt.
PUSHD Saves the current directory then changes it.
RD Removes a directory.
RECOVER Recovers readable information from a bad or defective disk.
REM Records comments (remarks) in batch files or CONFIG.SYS.
REN Renames a file or files.
RENAME Renames a file or files.
REPLACE Replaces files.
RMDIR Removes a directory.
SET Displays, sets, or removes Windows 2000 environment variables.
SETLOCAL Begins localization of environment changes in a batch file.
SHIFT Shifts the position of replaceable parameters in batch files.
SORT Sorts input.
START Starts a separate window to run a specified program or command.
SUBST Associates a path with a drive letter.
TIME Displays or sets the system time.
TITLE Sets the window title for a CMD.EXE session.
TREE Graphically displays the directory structure of a drive or path.
TYPE Displays the contents of a text file.
VER Displays the Windows 2000 version.
VERIFY Tells Windows 2000 whether to verify that your files are written
correctly to a disk.
VOL Displays a disk volume label and serial number.
XCOPY Copies files and directory trees.
cd change directory
copy copy files
type display a file
xcopy extended copy
attrib edit files' attribute
edit edit files
format wipe a disk 作者: 歪歪 时间: 2004-3-18 00:00 非常感谢