No it wouldn't, it returns ERROR_BAD_NET_NAME

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of [EMAIL PROTECTED]
Sent: Friday, 8 December 2000 11:55
To: Multiple recipients of list delphi
Subject: Re:[DUG]: Limitation of Findfirst, look for alternative


Can you add "\." at the end of the path - I don't know if i'll work - I
haven't
tried it... (should work !!!)

HTH

Regards
Paul

____________________Reply Separator____________________
Subject:  [DUG]:  Limitation of Findfirst, look for alternative
Author:   [EMAIL PROTECTED]
Date:          08/12/2000 08:56



     G'Day all,

     function FindFirst(const Path: string; Attr: Integer; var F:
TSearchRec):
     Integer;

     The Path parameter excepts a valid directory string, eg.
     Findfirst('\\IT_Support\KnowledgeBase', Attr, F) works just fine.
However
     if
     I pass the machine name only - Findfirst('\\IT_Support', Attr, F), it
     returns ERROR_PATH_NOT_FOUND.

     Could someone suggest a correct method of retrieving TOP LEVEL
directory
     and
     file information of a remote machine?

     Regards
     Cheng

     -----------------------------------------------------------------------
----
         New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                       Website: http://www.delphi.org.nz
     To UnSub, send email to: [EMAIL PROTECTED]
     with body of "unsubscribe delphi"(See attached file: att1.eml)



---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to