Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Network Paths...
Message
De
23/12/1999 05:42:57
 
 
À
22/12/1999 13:15:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00307414
Message ID:
00307815
Vues:
20
>Jeff,
>
>Use UNC to designate locations. Thats where you say "\\Server\sharename\folder\". In your example "\\Server\sharename" whould be equivalent to whatever "I" is mapped to.
>
>Older Fox doesn't recognize this method, but Visual does.
>

Another option that may be less radical AFA retrofitting would be to simply map the drive oon the fly as required on the way in and out of the application. You can use the Win32API to handle this (WNetAddConnection/WNetCancelConnection) or use an automation object (as usual, I'm fond of Wscript.Network, part of the WSH.)

I'd be careful with this if you have to drop a mapping in order to reassign it; while you can force the remap, it may have unexpected consequences for other apps that either are using the drive mapping now, or rely on the drive mapping when they start.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform