In my memory, I have seen others probably judge like this: 1. First, select the count this DOS external command, increment by one automatically each time it starts, and record it into a file; 2. In order to ensure that it can be recorded normally each time, run a command (I don't remember the specific one) before rebooting, and then judge whether the file it generates exists. If necessary, record the time of reboot, in case there is a basis for querying after the system hangs up. 3. The biggest advantage of writing like this is that there is no need for artificial parameters. For example, if I need an overnight test, I can know when I look in the morning, and it is also relatively flexible. Finally, I can't find the count external command. Is it recommended that the forum collect all DOS internal/external/special DOS commands? I don't know what everyone thinks about this?