China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-20 20:34
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » DOS teaching materials (only for novice entry) View 51,833 Replies 317
Floor 196 Posted 2004-09-15 00:00 ·  中国 黑龙江 大庆 联通
初级用户
Credits 108
Posts 4
Joined 2004-09-15 00:00
21-year member
UID 31442
Gender Male
Status Offline
Thank you, LZ!
Floor 197 Posted 2004-09-18 00:00 ·  中国 广东 广州 天河区 电信
初级用户
Credits 112
Posts 2
Joined 2004-07-19 00:00
21-year member
UID 28659
Gender Male
Status Offline
Floor 198 Posted 2004-09-22 00:00 ·  中国 广西 桂林 电信
初级用户
Credits 111
Posts 3
Joined 2004-09-22 00:00
21-year member
UID 31661
Gender Male
Status Offline
Floor 199 Posted 2004-09-22 00:00 ·  中国 广西 桂林 电信
初级用户
Credits 111
Posts 3
Joined 2004-09-22 00:00
21-year member
UID 31661
Gender Male
Status Offline
The rookie finally found the place to get started. tank you, really thank you so much!
Floor 200 Posted 2004-09-23 00:00 ·  中国 新疆 哈密 电信
初级用户
Credits 104
Posts 4
Joined 2004-09-22 00:00
21-year member
UID 31689
Gender Male
Status Offline
Thank you!!! I'm a newbie, and I really think this place is very good
Floor 201 Posted 2004-09-23 00:00 ·  中国 广东 佛山 南海区 电信
初级用户
Credits 103
Posts 2
Joined 2004-09-23 00:00
21-year member
UID 31701
Gender Male
Status Offline
Okay,,,Thanks,,,
Floor 202 Posted 2004-09-23 00:00 ·  中国 广东 佛山 南海区 电信
初级用户
Credits 103
Posts 2
Joined 2004-09-23 00:00
21-year member
UID 31701
Gender Male
Status Offline
Common Commands in DOS
(I) MD -- Create Subdirectory
1. Function: Create a new subdirectory
2. Type: Internal command
3. Format: MD <subdirectory name>
4. Usage instructions:
(1) "Drive": Specify the disk drive letter where the subdirectory is to be created. If omitted, it is the current drive;
(2) "Pathname": The name of the upper-level directory of the subdirectory to be created. If omitted, it is created in the current directory.
Example: (1) Create a subdirectory named FOX under the root directory of drive C; (2) Create a USER subdirectory under the FOX subdirectory.
C:> MD FOX (Create subdirectory FOX under current drive C)
C:> MD FOX\USER (Create USER subdirectory under FOX subdirectory)

(II) CD -- Change Current Directory
1. Function: Display the current directory
2. Type: Internal command
3. Format: CD
4. Usage instructions:
(1) If the path and subdirectory name are omitted, the current directory is displayed;
(2) If the format "CD\" is used, it returns to the root directory;
(3) If the format "CD.." is used, it returns to the upper-level directory.
Example: (1) Enter the USER subdirectory; (2) Return from the USER subdirectory to the upper-level directory; (3) Return to the root directory.
C:> CD FOX\USER (Enter USER subdirectory under FOX subdirectory)
C:>FOX\USER> CD.. (Return to upper-level root directory)
C:>FOX> CD\ (Return to root directory)
C:>

(III) RD -- Delete Subdirectory Command
1. Function: Delete a directory from the specified disk.
2. Type: Internal command
3. Format: RD
4. Usage instructions:
(1) The subdirectory must be empty before deletion, that is, you need to enter the subdirectory first, use DEL (the command to delete files) to empty the files under the subdirectory, then return to the upper-level directory, and use the RD command to delete the subdirectory itself;
(2) The root directory and the current directory cannot be deleted.
Example: Requirement: Delete the USER subdirectory under the FOX subdirectory on drive C. The operation is as follows:
Step 1: First empty the files under the USER subdirectory;
C:> DEL C:\FOX\USER\*.*
Step 2: Delete the USER subdirectory.
C:> RD C:\FOX\USER

(IV) DIR -- Display Disk Directory Command
1. Function: Display the content of the disk directory.
2. Type: Internal command
3. Format: DIR
4. Usage instructions: Use of /P; When there are too many directories to view and they cannot be displayed completely on one screen, the screen will keep scrolling up, which is not easy to see. After adding the /P parameter, the file information of 23 lines will be displayed page by page on the screen, then paused, and prompt: Press any key to continue
Use of /W: Adding /W only displays the file names, and the file size, creation date and time are all omitted. After adding the parameter, five file names can be displayed per line.

PATH -- Path Setting Command
1. Function: Set the search path for executable files, only valid for files.
2. Type: Internal command
3. Format: PATH directory{<directory pathname2>...}
4. Usage instructions:
(1) When running an executable file, DOS will first search for the file in the current directory. If found, it will run it; if not found, it will search for the file in the directories set by the PATH command in sequence one by one;
(2) The paths in the PATH command, if there are two or more, are separated by a semicolon ";" between each path;
(3) The PATH command has three usage methods:
PATH... (Set the search path for executable files)
PATH: (Cancel all paths)
PATH: (Display the currently set path)

(VI) TREE -- Display Disk Directory Structure Command
1. Function: Display all directory paths on the specified drive and all file names under these directories.
2. Type: External command
3. Format: TREE
4. Usage instructions:
(1) When using the /F parameter, all directories and all files under the directories are displayed. When omitted, only directories are displayed, and files under the directories are not displayed;
(2) When using the >PRN parameter, the listed directories and file names in the directories are printed out.

(VII) DELTREE -- Delete Entire Directory Command
1. Function: Delete the entire directory and its subordinate subdirectories and files.
2. Type: External command
3. Format: DELTREE<pathname>
4. Usage instructions: This command can delete the directory and all files, subdirectories, and lower-level subdirectories under it in one step. Moreover, regardless of whether the file attributes are hidden, system or read-only, as long as the file is under the deleted directory, DELTREE will delete it without distinction. Be extremely careful when using it!!!
Just found it,,, hope everyone likes it,,,, thank you!!!!!!!!!!
Floor 203 Posted 2004-09-23 00:00 ·  中国 湖北 武汉 江岸区 电信
初级用户
Credits 128
Posts 6
Joined 2004-09-23 00:00
21-year member
UID 31713
Gender Male
Status Offline
Thanks
Floor 204 Posted 2004-09-24 00:00 ·  中国 黑龙江 哈尔滨 联通
初级用户
Credits 102
Posts 1
Joined 2004-09-23 00:00
21-year member
UID 31729
Gender Male
Status Offline
Then what should we do?
Floor 205 Posted 2004-09-27 00:00 ·  中国 海南 海口 电信
初级用户
Credits 102
Posts 1
Joined 2004-09-27 00:00
21-year member
UID 31852
Gender Male
Status Offline
Good stuff, everyone loves it! Thanks!
Floor 206 Posted 2004-10-05 00:00 ·  中国 江苏 无锡 电信
初级用户
Credits 105
Posts 2
Joined 2004-10-05 00:00
21-year member
UID 32147
Gender Male
Status Offline
Floor 207 Posted 2004-10-06 00:00 ·  中国 湖北 武汉 电信
初级用户
Credits 108
Posts 3
Joined 2004-10-06 00:00
21-year member
UID 32152
Gender Female
Status Offline
Floor 208 Posted 2004-10-06 00:00 ·  中国 山东 烟台 联通
初级用户
Credits 104
Posts 2
Joined 2004-10-06 00:00
21-year member
UID 32154
Gender Male
Status Offline
Floor 209 Posted 2004-10-13 00:00 ·  中国 广东 汕头 联通
初级用户
Credits 108
Posts 3
Joined 2004-10-13 00:00
21-year member
UID 32423
Gender Male
Status Offline
Good stuff, thank you big brother
Floor 210 Posted 2004-10-14 00:00 ·  中国 云南 德宏傣族景颇族自治州 电信
初级用户
Credits 103
Posts 1
Joined 2004-10-14 00:00
21-year member
UID 32482
Gender Male
Status Offline
‹ Prev 1 12 13 14 15 16 22 Next ›
Forum Jump: