Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Connectivity
Message
From
27/03/2008 13:14:35
 
 
To
27/03/2008 09:42:02
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Windows 2000 Server
Miscellaneous
Thread ID:
01306135
Message ID:
01306228
Views:
6
>First off, I should know this answer, but...
>
>Our application was designed to connect to drive across the network through mapped drives. But, if the local machine is rebooted the drive appears in the drive listing but is not available until it is accessed by the user via Explorer. Is there a way to programmability touch the mapped drive to allow access?

It sounds like you may be relying on Windows to "remember" drive mappings across reboots. A more reliable way to achieve this is to put the following commands in a .CMD file that gets run at workstation logon, or in the system logon script if you're on a domain:
REM Assume we're talking about drive H:
REM First, delete any pre-existing mapping for H:
NET USE H: /DEL >NUL
REM Now, re-establish the one we want:
NET USE H: \\MachineName\ShareName /persistent:y >NUL
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform