Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I share a folder or Drive with VFP Programming
Message
From
03/03/1999 09:14:05
 
 
To
03/03/1999 08:17:58
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00193502
Message ID:
00193531
Views:
14
>Do anyone Know how to share a folder or drive by VFP/API ?
>
>I am Appreciate with any advise
>

There are API calls available to create shares on a network; the calls change according to what sort of system is having the share created. A third party library like NetLib is probably the easiest way to add the necessary functionaily. The Win32 API NetShareAdd() and NetShareSetInfo() calls will be most useful for the NT/Win9x environment on NT server and peer stations, but the API calls require some low-level programming to manipulate some of the structures needed to create the share, especially in the case of shares on NT systems; I'd recommend writing a wrapper .DLL in C to handle the task.

Microsft's ADSI automation objects can be used to programmatically create shares and assing permissions; you can download ADSI information from Microsft's Web page. You'll need to get the appropriate server and client components for the environment that you want to support.

>Tony
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
Reply
Map
View

Click here to load this message in the networking platform