| 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 of a Win32 machine? |
| From: | George Clark <gaclark at sprynet dot com> |
| Date: | Fri, 28 Jun 2002 08:30:56 -0400 |
On 6/28/02 08:18, Karl Holmes wrote:
> I tried
>
> n=volumeCount-1
> for i = 0 to n
> s= volume(i).name
> f=getfolderitem(volume(i).name).child("SFDev409") //SFDev409 is a
> file on top level of CDROM
> if not(f =nil) then
> if f.exists then
> statictext1.text = "CDROM found"
> end if
> end if
> next
>
> but couldn't get this to work even on a Mac, f was always nil.
There are probably Windows routines that can find the CD for you, but in the
meantime, try using volume(i).child("SFDev409").
George
--
George Clark - gaclark at sprynet dot com
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | How can I determine if my program CD is in the drive of a Win32 machine?, Karl Holmes |
|---|---|
| Next by Date: | sending data with socket, Enrico Rosso |
| Previous by Thread: | How can I determine if my program CD is in the drive of a Win32 machine?, Karl Holmes |
| Next by Thread: | Explanation about SDI and MDI for Win32 needed, Karl Holmes |
| Indexes: | [Date] [Thread] [Top] [All Lists] |