Re: Trouble logging on to a mapped drive/folder.
- From: Steve Meyerson <stevemeyerson@xxxxxxx>
- Date: Thu, 05 Jul 2007 17:05:16 GMT
Berbhard.
The mapped drive method I was using seems unreliable - sometimes NET
USE showed one drive's status "OK" and the other "Unavailable" for
some reason.
I'm now using net paths only. I use RUN NET USE > PathList.txt, then
parse PathList.txt to get \\<net paths>.
Thanks for your help.
Steve
On Wed, 04 Jul 2007 22:41:40 +0200, Bernhard Sander <fuchs@xxxxxxx>
wrote:
Hi Steve,
I have a VFP9 SP2 app running on a desktop which updates files on aTry:
couple of laptops, It tries to read & write to a folder on a laptop
which is mapped as N:\ thru a LAN.
The desktop computer is normally running when the user boots up the
laptop and connects the LAN cable. The FILE function returns .F. for
FILE('N:\AnyFile.txt') when N:\AnyFile.txt actually exists in that
folder. To read the file, the user must reboot the desktop computer to
establish the connection needed.
Actually, I can access the laptop file right after the cable is
connected by clicking N:\ in the desktop's Windows Explorer. It takes
about 5 seconds for the list of files to appear (there are about 800
small files in the folder). However, I can't expect the user to do
that each time.
I tried repeating the FILE() function and/or CD command inside a loop
for a timed period to give the connection a chance, but it doesn't
seem to work.
Is there a function or command I could use to log on to the folder
while waiting for the LAN to make the connection as it does in Windows
Explorer?
RUN NET USE N: \\computer\share
from within foxpro.
For more parameters open a command window and enter
NET HELP USE
Regards
Bernhard Sander
.
- References:
- Trouble logging on to a mapped drive/folder.
- From: Steve Meyerson
- Re: Trouble logging on to a mapped drive/folder.
- From: Bernhard Sander
- Trouble logging on to a mapped drive/folder.
- Prev by Date: Re: what happened with fox spanish newsgroup ?
- Next by Date: Re: Mabry Mail Control and PDF with Chinese fonts
- Previous by thread: Re: Trouble logging on to a mapped drive/folder.
- Next by thread: Re: Trouble logging on to a mapped drive/folder.
- Index(es):
Relevant Pages
|