Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VFP recognising DIRECTORY() and FILE()

Status
Not open for further replies.

Charterhouse

Programmer
Sep 25, 2006
12
0
0
GB
I'm supporting about 120 desktop & laptop users with any application which operates for most of the time, offline. However, when data needs to be uploaded to the server, the application recognises whether or not it is online by using
the code

gcNetDataDir = '\\ServerName\DataFolder\'
IF DIRECTORY(gcNetDataDir)
Online
ELSE
Offline
ENDIF

This works fine, except for about 3 laptops, despite the actual existence of the path, the DIRECTORY() fails to identify the existence. Is this a problem of the OS or VFP?
Is there another way around it? Any suggestions?
 
Do they have network access to those folders?
 
Yes, I can type in the UNC path and access the the tables through explorer, but the IF DIRECTORY(gcNetDataDir) fails.

This happens also with IF FILE('VFPODBC.DLL') all the other system files are recognised but not VFPODBC.DLL

This code is installed and operating everyday on over a hundred machines. If this failure was all on one machine, I could re-install windows. But the DIRECTORY failure is happening on one machine and the FILE failure on 3 machines.
 
I had the same issue two days ago with the DIRECTORY() function the user has full access to the networked folder but that function still fails.

The user`s password was changed recently then I reset the password back and it works.

Frank
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top