help you to master dos quickly
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]
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
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 file1 file2
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 filename
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 file1 file2
eg: c:>ren a.bat b.bat ----a.bat rename to b.bat
7. del ----c:>del filename
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
eg: c:yln>xcopy \wps /s/e ----copy the directory "wps" and all
it''s sub-directory enclude empty
sub-directory
10. attrib ----c:>attribfilename
eg: c:yln\wps>attrib +h +r xue1.wps----set file attrib (hide,readonly)
11. edit ----c:>edit
eg: c:>edit \yln\wps\wue3.txt ----edit file wue3.txt
12. chedsk ----c:>chkdsk ----check d:
13. tree ----c:>tree ----show d:''s directory
14. format ----c:>format ----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
eg: c:>deltree yln/y ----delete directory named yln ,and No ask for your affirm
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>
也是俺以前写的,现在翻出来充数的。呵呵。。。
help you to master dos quickly
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]
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
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 file1 file2
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 filename
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 file1 file2
eg: c:>ren a.bat b.bat ----a.bat rename to b.bat
7. del ----c:>del filename
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
eg: c:yln>xcopy \wps /s/e ----copy the directory "wps" and all
it''s sub-directory enclude empty
sub-directory
10. attrib ----c:>attribfilename
eg: c:yln\wps>attrib +h +r xue1.wps----set file attrib (hide,readonly)
11. edit ----c:>edit
eg: c:>edit \yln\wps\wue3.txt ----edit file wue3.txt
12. chedsk ----c:>chkdsk ----check d:
13. tree ----c:>tree ----show d:''s directory
14. format ----c:>format ----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
eg: c:>deltree yln/y ----delete directory named yln ,and No ask for your affirm
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>
Also something I wrote before, now dug out to make up the numbers. Hehe...