Complete set of DOS commands (III)

Time:2022-5-4

   

(6) Attrib — modify file attributes command

1. Function: modify the attributes of the specified file. (see section 2.5.4 (II) document attributes for document attributes)

2. Type: external command.

3. Format: attrib [file name] [R] [- R] [a] [- A] [H] [- H] [S] [- S] [/ S]

4. Instructions:

(1) Select the R parameter and set the specified file as read-only, so that the file can only be read, and cannot be written or deleted; Select – R parameter to remove the read-only attribute;

(2) Select parameter a to set the file as file attribute; Select – a parameter to remove the file attribute;

(3) Select the h parameter to adjust the file as an implicit attribute; Select – h parameter to remove hidden attributes;

(4) Select s parameter and set the file as system attribute; Select – S parameter to remove the system attribute;

(5) Select the / S parameter to set all subdirectories and under the current directory.

(7) Del — delete file command

1. Function: delete the specified file.

2. Type: internal command

3. Format: del [drive letter:] [path] 【 file name 】 [/ P]

4. Instructions:

(1) Select the / P parameter, and the system will ask whether to delete the file before deleting. If this parameter is not used, it will be deleted automatically;

(2) This command cannot delete files whose attributes are implicit or read-only;

(3) Wildcards can be used in file names;

(4) If you want to delete all files on the disk (del * · * or del ·), you will be prompted: (are you sure?) Are you sure If you answer y, delete it; if you answer N, cancel the deletion.

(8) Undelete — restore delete command

1. Function: restore the wrongly deleted command

2. Type: external command.  

3. Format: undelete [drive letter:] [pathname] (file name) [/ DOS] / list] [/ all]

4. Instructions for use: when Undelete is used, “*” and “?” can be used Wildcards.  

(1) Select the / DOS parameter to recover the file according to the residual records in the directory. When the file is deleted, the first character of the file name recorded in the directory will be changed to E5, and DOS will find the file to be recovered according to E5 at the beginning of the file and its subsequent characters. Therefore, undelete will ask the user to enter a character to supplement the file name. However, this character does not have to be the same as the original one. It only needs to comply with the file name rules of DOS #.  

(2) Select / list to “list” only the files that meet the specified conditions without recovery, so it will not affect the contents of the disk at all.  

(3) Select / all to automatically recover the fully recoverable files without asking the user one by one. When using this parameter, if undelte uses the remaining records in the directory to recover the files, it will #% – automatically select a character to supplement the file name and make it different from the existing file name. The preferred order of characters selected is: #% – 0000123456789a ~ Z.  

Undelete also has the function of establishing file protection measures, which is beyond the teaching scope of this course. Please refer to the relevant DOS manual when using these functions.   

VII. Other orders

(1) CLS – clear screen command

1 function: clear all displays on the screen, and place the cursor in the upper left corner of the screen.  

2. Type: internal command

3 format: CLS

(2) Ver view system version number command

1 function: display the current system version number

2. Type: internal command

3 format: ver

(3) Data date setting command

1 function: set or display the system date.  

2. Type: internal command

3 format: date [mm — DD — YY]

4 instructions for use:

(1) Omit [mm — DD — YY] to display the system date and prompt to enter a new date. If you don’t modify it, you can press enter directly, [mm — DD — YY] is in the format of “month month day year”;  

(2) When the machine starts to start, if the automatic processing file (Autoexec. Bat) is executed, the system will not prompt for the system date. Otherwise, prompt for a new date and time.  

4) Time system clock setting command

1 function: set or display the system period.  

2. Type: internal command

3 format: time [HH: mm: SS: XX]

4 instructions for use:

(1) Omit [HH: mm: SS: XX], display the system time and prompt for a new time. If you don’t modify it, you can press enter directly, [HH: mm: SS: XX] is in the format of “hour: minute: Second: percent of second”;  

(2) When the machine starts to start, if the automatic processing file (Autoexec. Bat) is executed, the system will not prompt for the system date. Otherwise, prompt for a new date and time.  

(5) MEM view current memory status command

1 function: display the current memory usage

2 type: external command

3 format: MEM [/ C] [/ F] [/ M] [/ P]

4 instructions for use:

(1) Select the / C parameter to list the length of each file loaded into conventional memory and CMB, and also display the usage of memory space and the maximum available space;  

(2) Select the / f parameter to list the remaining byte size of the current conventional memory and the available area and size of UMB respectively;  

(3) Select the / M parameter to display the address, size and nature of the memory used by the module;  

(4) Select the / P parameter to specify that when the output exceeds one screen, it will be suspended for the user to view.  

(6) MSD display system information command

1 function: display the hardware of the system and the status of the operating system.  

2 type: external command

3 format: MSD [/ I] [/ b] [/ S]

4 instructions for use:

(1) When the / I parameter is selected, the hardware is not detected;  

(2) When the / b parameter is selected, start MSD in black and white;  

(3) When the / S parameter is selected, a concise system report is displayed.  

How to install xp under DOS

Note: installing xp under DOS is not the first choice. I usually start and install from CD. I wrote this because many netizens want to know.

If you want to post, please indicate that it comes from Wen Dao Chang’an. Ahhh:)

1. Preparation: make 98 startup disk (don’t teach this?). Then find format in the C: \ windows directory of Win98 Exe and smartdrv Exe two files and copy them to the boot disk.

2. Set BIOS to floppy disk boot (how to set it? I’ll reverse it!).

3. Use 98 startup disk to restart under DOS (pay attention to loading optical drive for startup).

4. At the command prompt, type:
a: \ > format C: / U / Q (if you also want DOS to exist, then format C: / Q / U / s) enter
a:\>SMARTDRV. Exe enter (no prompt appears after running, but it has been running)
a: \ > X: (enter the disk where XP installer is located)
x: \ > CD i386 (enter directory)
x:\i386>winnt. Exe (start setup)

Well, I can have a rest – I can also have a rest. Typing is really tired.
XP installed in this way is the cleanest.

be careful:
1. X stands for CD or hard disk installation disk. Sometimes it’s hard to use, and you have to move one bit later, such as CD E and one bit F.
2. The premise is that the system disk is not in NTFS format (otherwise it is not installed under DOS).
3. For hard disk installation, if the installation file is not in the root directory, such as a folder, enter X: \ > CD folder name first (Chinese name cannot be used, and X is the hard disk drive letter).