Discussion Locked

MS-DOS question

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi,

I am building a boot and format/gdisk process for an unattended setup.
I want to be able to check if the is an second (d:) partition, if there is I want to run 1.bat, if there isn't I want to run 2.bat

I run this with MSDOS 6.22 from a floppy.

Anybody has any idea how I can do this?

Thanks in advance,

Eduard de Vries

4 replies

by erikdr

Doesn't look all too complicated, supposing you want to test for a formatted D:.
First COPY a small file from A: to D:, with / The Netherlands

by rogerndgreen

Although the first answer will work, a slightly quicker way is to look for the existence of the file d:\nul
If it exists, there is a formatted D: drive. If not, there isn't.
After that you can execute the appropriate batch file
HTH
Roger

by edrox

Roger,

exactly what needed, feel a bit stupid though, I should have thought of this, I probably have looked to long at this with my complicated gfidk and fdisk commands.

Regards,

Eduard de Vries

This discussion is closed to new replies.