From: Hans-Bernhard Broeker Newsgroups: comp.os.msdos.djgpp Subject: Re: Partition problem... Date: 2 May 2000 13:46:56 GMT Organization: Aachen University of Technology (RWTH) Lines: 26 Message-ID: <8emm8g$al1$1@nets3.rz.RWTH-Aachen.DE> References: <3 DOT 0 DOT 6 DOT 16 DOT 20000428113827 DOT 2d8f1b36 AT mail DOT cybercable DOT fr> <3 DOT 0 DOT 6 DOT 16 DOT 20000429092424 DOT 0ef7283a AT mail DOT cybercable DOT fr> NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de X-Trace: nets3.rz.RWTH-Aachen.DE 957275216 10913 137.226.32.75 (2 May 2000 13:46:56 GMT) X-Complaints-To: abuse AT rwth-aachen DOT de NNTP-Posting-Date: 2 May 2000 13:46:56 GMT Originator: broeker@ To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Michelle Konzack 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.