D
Don Hamilton
Hi,
For a small Windows desktop application I needed a simple way to check
for the existence and drive names of cdrom drives. My immediate
inclination was to iterate through an array returned by list.Roots()
using File.exists() with empty drives as the test. But I seem to recall
that problems have been reported where exists() would'nt,in the case of
Win XP or one of its SP's, work as I expected
An alternative would be to use a WIM/script function, but again as I
understand it, accomodating the various flavours of Windows is not
entirely without problems.
As a relative novice I'm fumbling my way through this, so any comments
would be welcome as to the most reliable route to persue. I'm not
looking for example code, just a prod in the right direction.
As an aside, from what I read the emergence of Java 7 (Dolphin) might
possibly (MS permitting) put an end to this type of problem.
Don Hamilton.
For a small Windows desktop application I needed a simple way to check
for the existence and drive names of cdrom drives. My immediate
inclination was to iterate through an array returned by list.Roots()
using File.exists() with empty drives as the test. But I seem to recall
that problems have been reported where exists() would'nt,in the case of
Win XP or one of its SP's, work as I expected
An alternative would be to use a WIM/script function, but again as I
understand it, accomodating the various flavours of Windows is not
entirely without problems.
As a relative novice I'm fumbling my way through this, so any comments
would be welcome as to the most reliable route to persue. I'm not
looking for example code, just a prod in the right direction.
As an aside, from what I read the emergence of Java 7 (Dolphin) might
possibly (MS permitting) put an end to this type of problem.
Don Hamilton.