Mail Archives: djgpp/2000/05/02/10:46:21
Michelle Konzack <starone AT cybercable DOT fr> wrote:
> If I put my first harddisk in an other Computer, the second is missing !!!
> ..and they do not find two Partitions... (f: and i:)
> If I my Windows try to access the second harddisk, Windows crashes.
> Now I need to make a small program, which works in the autoexec.bat and
> check the second harddisk for the partitions f: and i: and its contents.
Testing wether the second disk is present should be simple. Just put
some 'special' file on drive f: or i:, and check for its existence
and/or contents. I.e. right in your autoexec.bat, you could write:
if exist f:\michelle.2nd goto OK_2nd_drive_is_there
rem handle the problem, here
rem (may be impossible to handle, in which case you'll have to
rem throw an error message and refuse to go on)
:OK_2nd_drive_is_there
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -