Also, if an application is going to depend upon the existence and availability of a network drive for presumably more than one connection, perhaps it should perform one test for the presence of the UNC path at app startup so as to avoid waits and problems later when it tries to make individual connections.
Sort of related is an internet connection, which may or may not be always available to a given machine. For this case, I've included an operator profile option that the can set to indicate "an Internet is always available to this machine" (disruptions being the exception, not the rule). This information is then available to the app when it (attempts to) use that connection. Bill > Malcolm, > I wonder if the API for FindFirstFile works as fast as File() > > DECLARE INTEGER FindFirstFile IN kernel32; > STRING lpFileName,; > STRING @ lpFindFileData > > lpFileName="\\server\temp.txt" > lpFindFileData=Replicate(Chr(0),300) > * > ? FindFirstFile(lpFilename, @lpFindFileData) > > Unfortunately I don't know the length of the structure of > type WIN32_FIND_DATA off hand (I'm just off to bed) so I've > put in 300 as a guess. > > Dave Crozier > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Malcolm Greene > > Sent: 03 October 2006 20:43 > To: [email protected] > Subject: Quickly determining a UNC path is bad? > > Any suggestions for quickly determining that a UNC path is bad? > > Example: > > ? FILE( '\\bad\bad.txt' ) > > It takes 10-15 seconds for VFP to determine a UNC path is > invalid on my workstation (XP Pro SP 2). > > Is there an alternative technique for quickly validating a UNC path? > > Thanks, > Malcolm _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

