How to use the doskey command

Time:2022-1-2

Doskey} calls and establishes DOS macro commands

[application] it is very useful when it is often necessary to input repeated commands

Doskey

The doskey will be stored in the memory to open up the buffer, and the commands entered in the future will be saved in the buffer
Area, which can be called at any time

Doskey [macro command name] = [command name]

Macro commands are defined as commands. After entering macro commands, the computer will execute the corresponding commands

Doskey / reinstall reinstall doskey

Doskey / bufsize = set buffer size

Doskey / macros displays all doskey macros

Doskey / history displays all commands in memory

Doskey / insert|override | sets whether newly typed characters overwrite old characters

[example] C: \ > doskey
         C:\>dir 
         C:\>copy C:\temp\*.* a: 
         C:\>del c:\temp\*.* 
         C:\>copy b:\*.* c:\temp 

The above four commands have been saved. You can use the cursor control keys up and down to select or
Modify, or press F7 to list all saved commands

C: \ > doskey Di = dir / w / P – defines Di as a macro command, which means executing dir / w / P

Fdisk # hard disk partition

[suggestion] only when the hard disk is infected by a very important virus, or a new hard disk needs to be partitioned. It’s best
Ask knowledgeable people for guidance. Hard disks need to go through three steps: low-level formatting, partitioning and formatting
Before use, the hard disks in the finished computer have been processed.  

[usage] enter fdisk and press enter to enter the prompt interface