Re: Trouble logging on to a mapped drive/folder.

Tech-Archive recommends: Speed Up your PC by fixing your registry




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 a
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?
Try:
RUN NET USE N: \\computer\share
from within foxpro.

For more parameters open a command window and enter
NET HELP USE

Regards
Bernhard Sander

.



Relevant Pages

  • RE: Strange VPN Porblem
    ... I understand that one laptop can not access ... Please disable the XP firewall, and ensure there is no connection limit ... Please manually create a VPN connection via the following KB and then ... Try to access share folder via IP address (i.e. ...
    (microsoft.public.windows.server.sbs)
  • Re: Trouble logging on to a mapped drive/folder.
    ... the registry to stop the autodisconnect. ... It tries to read & write to a folder on a laptop ... laptop and connects the LAN cable. ... establish the connection needed. ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Home network:can access files on desktop to laptop, but not vi
    ... ..pst files between my laptop and desktop. ... this folder private" check box and ultimately messed everything up. ... I can access the .pst file for my desktop ... Ethernet adapter Wireless Network Connection: ...
    (microsoft.public.windowsxp.network_web)
  • Re: Trouble logging on to a mapped drive/folder.
    ... It tries to read & write to a folder on a laptop ... laptop and connects the LAN cable. ... establish the connection needed. ...
    (microsoft.public.fox.programmer.exchange)
  • Trouble logging on to a mapped drive/folder.
    ... I have a VFP9 SP2 app running on a desktop which updates files on a ... It tries to read & write to a folder on a laptop ... laptop and connects the LAN cable. ... establish the connection needed. ...
    (microsoft.public.fox.programmer.exchange)