realbasic-nug
[Top] [All Lists]

Re: How can I determine if my program CD is in the drive ofa Win32 mach

To: REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: How can I determine if my program CD is in the drive ofa Win32 machine?
From: support at monkeybreadsoftware dot de (Christian Schmitz)
Date: Fri, 28 Jun 2002 20:57:59 +0200
> George Clark wrote:
> 
>  f=getfolderitem(volume(i).name).child("SFDev409")

Don't use getfolderitem.
I would use something like this:

c=volumecount-1
for i=0 to c
   v=volume(i)
   if v<>Nil then
      f=v.child("SFDev409")
      if f<>nil and f.exists then
         // found
         exit
      end if
      f=nil
   end if
next

if f<>nil then // found
end if


Mfg
Christian


-- 
Im übrigen haben Frauen durchweg hohe Apple-Qualitäten. Kein Wunder 
eigentlich; schließlich war laut biblischer Überlieferung der erste 
Apple-User eine Frau. Andererseits trat dabei "Fehler 1" auf, wodurch 
das Programm "Paradies" unerwartet beendet wurde...[Niels Knoop]


<Prev in Thread] Current Thread [Next in Thread>