Thank you very much for your help, the test is successful.
I feel that there may be a function to directly obtain the number of hard disks and the number of partitions.
Using the batch +diskpart method feels a bit complicated
I feel that there may be a function to directly obtain the number of hard disks and the number of partitions.
Using the batch +diskpart method feels a bit complicated