Determining physical hard drives with a batch file - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Determining physical hard drives with a batch file

skeeeveskeeeve Posts: 2Member

I am writing a simple batch file for DOS that will run under Windows 2000.

I would like to be able to determine how many physical hard drives are installed in the computer and what architecture (IDE or SCSI) and then use that result to call a particular subroutine.

Here are some more details:

We have three hardware options that I would like a batch file to be able to determine:

1. Two IDE Drives
2. One IDE Drive and one SCSI Drive
3. Two IDE Drives and two SCSI Drives

The first drive will have a C partition running Windows 2000. All other drives will have no partitions active. I am using Norton Ghost to set up the computers.

Any ideas?

Sign In or Register to comment.