<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Shane M. Coughlan wrote:
<blockquote cite="mid4415A444.3040506@shaneland.co.uk" type="cite">
  <pre wrap="">-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Peter Green wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">I suppose that one way to sort it would be to write GEM.BAT so that it
used an IF EXIST line to look for the NUL file in each of the possible
SUBSTituted drives beyond, say, M: (or backwards from Z: to M:) and took
the first one it found. That would make for a rather extensive
batchfile, but...
Alternatively, could a small executable be created (say with QuickBASIC)
to generate a form of GEM.BAT based on user input about the available
drivenames?
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Hm, you are raising a very good point here.  It would make a lot of
sense from the OpenGEM perspective (simple, working, turnkey distro) to
just automatically test people's drives.

Does anyone know how to make the IF EXIST batch code to do this?  Off
the top of my head, I'm not sure how to do it.  It would just save me
muddling around.

  </pre>
</blockquote>
Peter Green (breaking from rushed morning muesli):<br>
<br>
Thinking it over, it possibly wouldn't work for networked drives,
because they are notional rather than real. I'd need to check that over.<br>
<br>
In a physical drive, you have the two files represented by the single
and the double dots. One of them is the null device; and, while EXIST
will not detect a drive per se, it will detect that file.<br>
<br>
eg:<br>
IF EXIST M:\NULL GOTO S1<br>
IF EXIST N:\NULL GOTO S2<br>
IF EXIST O:\NULL GOTO S3<br>
etc<br>
<br>
:S1<br>
SUBST (to create N:)<br>
<br>
:S2<br>
SUBST (to create O:)<br>
<br>
etc<br>
<br>
AFAIR.<br>
<br>
Sorry to rush off leaving this hanging.<br>
<br>
Peter<br>
</body>
</html>