中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-09-30 02:14
47,813 topics / 349,918 posts / today 0 new / 48,278 members
DOS学习入门 & 精彩文章 (教学室) » Help: an intuitive tutorial on common DOS commands?
Printable Version  2,336 / 4
Floor1 5q8 Posted 2010-05-21 18:19
初级用户 Posts 23 Credits 53
Like in the command example below

1. CD command
3)cd folder name Enter the XXX directory


Conditions: single-system XP installed on drive C of a single hard disk; the hard disk has c, D, E, F, G partitions, all using the FAT32 file system; in the root directory of drive E there is a folder 1, and in folder 1 there is a file 2
Enter DOS
===========
A:\>_
A:\>E: ------>(enter drive letterE:)
Press Enter ------->(press the Enter key on the keyboard)
E:\_
E:\cd 1 ------>(there is a space between cd and 1)
Press Enter
E:\1>_
E:\1\ 2
Press Enter

==========

+++++++++++++++++++++++++++++++++++++++++++++++++

Please, experts, use the above method to teach us newbies how to use the following common DOS commands
Common DOS commands

1. CD command

1)cd.. Go back to the next higher directory
2)cd\ Return to the root directory
3)cd folder name Enter the XXX directory

2.MD command

1)md folder name Create an XXX folder

3.RD command

1)rd folder name Delete an XXX folder (the prerequisite is that the folder does not contain anything; if it does, you need to add the /s parameter)

4.COPY command

1)copy file under path target path Copy the file under the path to the target path

5.DEL command

1)del file under target path Delete the file under the target path

6.DIR command

1)dir folder name or drive letter View the files under a certain path

2)dir/W:wide-screen display, shows 5 filenames in one row, and will not show information such as modification time and file size

dir/S:show all files in the current directory and its subdirectories

dir/a :view all files including hidden files dir c:\windows /a

dir/p :view by pages, this one is very practical, everyone should definitely try it themselves

7.FORMAT command

1)format drive letter Format the hard disk

8.REN command

1)ren filename1 filename2 Rename filename1 to filename2

9.TYPE command

1)type filename View file contents

10.CLS command

1)cls Clear the screen (not very useful, it just looks a bit cleaner)

Common network DOS commands

11.FPORT command View system ports and the programs running on those ports

12.netstat -an View all connections to the local IP

13.ipconfig /all View detailed information for all local IPs

14.telnet IP port Connect to a certain port on the other machine

15.net user View local users
net user username password /add Create a user
net user username /del Delete a user

16.net localgroup administrators username /add Add the user to administrators
net localgroup administrators username /del Remove the user from the administrators group



17.mem Check how much memory your computer has, and the memory usage

18.time Display and set the DOS system time Enter the new time: means setting the time; just press Enter to skip it

19.date Display and set the DOS system date Used the same way as the time command

20.ver Display the version number of the DOS system currently running



+++++++++++++++++++++++++++++++++++++++++++++++++

[ Last edited by 5q8 on 2010-5-21 at 19:07 ]
Floor2 HAT Posted 2010-05-21 23:32
版主 Posts 5,017 Credits 9,023
Batch file series thread index
http://bbs.bathome.net/thread-2576-1-1.html
Floor3 5q8 Posted 2010-05-22 03:25
初级用户 Posts 23 Credits 53
Starting from zero, list all usages of the same command separately, with the full operation process and explanation; that is easier for newbies to understand
For example, the first usage of the CD command
cd folder name Enter the XXX directory

First list the full operation process:
===========
A:\>_
A:\>E: ------>(enter drive letter E:)
Press Enter ------->(press the Enter key)
E:\_
E:\cd 1 ------>(there is a space between cd and 1)
Press Enter
E:\1>_
E:\1\ 2
Press Enter
==========
Then for the second usage of the CD command, such as
cd.. Go back to the next higher directory
likewise list the full operation process (and then explain it):
=============




=============

And so on....
=====================================
If the different usages of the same command are all mixed together, it is very hard for newbies to understand, and even harder to apply
The full operation process means the actual practical process, intuitive and ready to learn and use right away

[ Last edited by 5q8 on 2010-5-22 at 03:37 ]
Floor4 HAT Posted 2010-05-24 10:00
版主 Posts 5,017 Credits 9,023
A complete guide to using the various commands in MS-DOS 7.x
http://www.cn-dos.net/forum/viewthread.php?tid=1693
Floor5 wl00560 Posted 2010-05-27 02:32
银牌会员 Posts 709 Credits 1,384
Didn't you already write out the method yourself?
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023