BIOS call to verify drive C exists

I'm trying to automatically FDISK and FORMAT a PC from an A drive, as in previous message... Is there a way, once a C drive has been DOS partitioned, but before formatting, that I can verify existance of the C drive through a BIOS call?

I have experimented with "IF EXIST" and "LABEL" commands within my .BAT and .BAT calling .TXT based procedure with no luck...

Thanks! Frank


Comments

  • : I'm trying to automatically FDISK and FORMAT a PC from an A drive, as in previous message... Is there a way, once a C drive has been DOS partitioned, but before formatting, that I can verify existance of the C drive through a BIOS call?

    : I have experimented with "IF EXIST" and "LABEL" commands within my .BAT and .BAT calling .TXT based procedure with no luck...

    : Thanks! Frank


    Frank,

    Have you tried running a Directory on C from your batch file using DIR C: as the DOS command? Would seem to me that you would get error if C not exist, but no error if it did exist, although no files are resident on C. I don't know, just an idea.


  • Attempt to switch to C:, if C: exists it should switch. I believe that's what I did last time I redid my computer. I FDisked, rebooted and then switched to C: just to see what would happen before I formatted. I think it let me switch to C: although attempting to run a dir got an error.


Sign In or Register to comment.

Howdy, Stranger!

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

Categories