I have a FoxProw 2.6 application I am converting to VFP 5.0.
FoxProw 2.6 application runs under Win 3.11 or Win 95 on Novell.
The FoxProw 2.6 application allows people to "check out" files to
work on on their laptops.
Rather than have two different applications, one for running on the
'network' and one to run on 'local' (laptop) computers I have the
application determine if there is a network attached to the computer.
In the FoxProw 2.6 application the following has always worked:
glNetwork = adir("aadir","f:\*.*","D") > 0
In otherwords if there are one or more files or directories
on the f: drive (the SYS drive) then there is a network there.
When I converted to VFP 5.0 I used the directory() function to
do the same thing.
glNetwork = directory("\\HWI\SYS")
This worked fine in Win 95. However, now I have laptops running
Win NT4.0.
In Win NT4.0 the above directory() statement causes a Win NT4.0
error message:
"There is no disk in the drive. Please insert a disk into
'\Device\RemPartion5' "
What do I need to do to supress the above message in Win NT4.0? Or
does anyone have a cleverer solution for detecting a network?
Best Regards
Don Simpson