Please clarify the specific disk partitioning tools or commands you are using, as the specific implementation methods for automatically partitioning in DOS vary depending on the tools. For example, using FDISK has certain operation steps, but the specific automated implementation needs to be combined with batch scripting or other means according to the actual situation. Here is a general idea: First, you need to calculate the size of the last partition that needs to be reduced and the size of the new main partition. Then, use relevant disk management commands in DOS to perform the operations of reducing the original partition and creating the new main partition. But specific operations need to be adjusted according to the actual disk situation and the tools used.



