Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Net use vs visual foxpro
Message
From
02/03/2004 11:47:23
 
 
To
02/03/2004 11:39:02
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00882363
Message ID:
00882366
Views:
17
>Hi,
>
>I've a question : for the moment we are using 'net use' to make a connection from a client to a server(drive) when the user is logging on to windows.
>
>But sometimes it happends that the 'mapped drive' is gone for some reason. Now i'm wondering if it's possible to connect to a drive on a server and give it a name like (F) without using the 'run' command so that the user doesn't get a black window.
>
>
>Thnx
DECLARE INTEGER WNetAddConnection IN win32api ;
        STRING RemoteName, ;
        STRING PassWord, ;
        STRING LocalName

? WNetAddConnection('\\mysever\shared$',0,'y:')
This is with the API. it will map to the Y drive
Charles

"The code knows no master." - Chuck Mautz
"Everybody is ignorant, only on different subjects." - Will Rogers
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform