Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mapping a drive....
Message
From
20/01/2001 03:08:20
 
 
To
18/01/2001 18:40:44
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00465485
Message ID:
00466122
Views:
12
>TIA - I think!!
>
>Ok. I have a Master machine on Peer to Peer. I want the master to send regular 'backups' to slave machines, just in case. I need the master to check for the mapping of "S" "T" and "U" drive, always just these three.
>

You can either use WSH's Wscript.Network object to do this, or implement several Win32API calls - WNetAddConnection(), WNetGetConnection() and WNetDisconnect2() at a minimum for the Win32 calls. THe WSH is easier.

>If the map is there but the connection is not open, I would like to open the connection so I can do my (in my own words) 'ghosting'.
>
>Is this possible using only VFP, i.e. I don't want to have to use VB or C something, or anything that does not already exist. I have checked the FAQ.
>
>Cheers
>
>Ric
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform