christophe
Tue May 10 02:27:20 CDT 2005
Thanks Lee,
I did some testing and the solution that use Drivetype()
are not reliable.
(see reply Fred)
the same is with those API function.
so far for me, the best solution is ADir()
thanks
christophe
--
\|||/
(o o)
----ooO-(_)-Ooo-------------
"Lee Mitchell" <Leemi@online.microsoft.com> schreef in bericht
news:n0VxK2KVFHA.2476@TK2MSFTNGXA01.phx.gbl...
> Hi Christophe:
>
> Do these article help you?
>
>
http://support.microsoft.com/default.aspx?scid=KB;EN-US;125372
>
http://support.microsoft.com/default.aspx?scid=KB;EN-US;135818
>
http://support.microsoft.com/default.aspx?scid=KB;EN-US;193623
>
> I hope this helps.
>
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>
> Sincerely,
> Microsoft FoxPro Technical Support
> Lee Mitchell
>
> *-- VFP9 HAS ARRIVED!! --*
> Read about all the new features of VFP9 here:
>
http://msdn.microsoft.com/vfoxpro/
>
> *--Purchase VFP 9.0 here:
>
http://www.microsoft.com/PRODUCTS/info/product.aspx?view=22&pcid=54787e64-52
> 69-4500-8bf2-3f06689f4ab3&type=ovr
>
> Keep an eye on the product lifecycle for Visual FoxPro here:
>
http://support.microsoft.com/default.aspx?id=fh;[ln];lifeprodv
> - VFP5 Mainstream Support retired June 30th, 2003
> - VFP6 Mainstream Support retired Sept. 30th, 2003
>
>> Hi,
>>
>> I have this little code to check if a drive exist yes or no,
>> but it fails on a pentablet. I get an error specifying "Drives does not
>> exist".
>> This pentablet has a drive (the server) only when it is docked (and
>> connected to a lan).
>> And this is just exactly what I want to prevent and checked if it is
> docked
>> or not
>> to perform some syncronisation with tables on the server.
>>
>> function checkdrive
>> lparameters chkdrive_
>> o = Create('Scripting.FileSystemObject')
>> lreturnvalue = o.Drives(chkdrive_).IsReady
>> release o
>> return lreturnvalue
>>
>> Anybody a workaround
>> to check when a drive exist (and is ready) ?
>>
>> thanks in advance
>> regards
>> christophe
>
>