Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reference another NT workstation drive?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00339897
Message ID:
00341937
Views:
23
Hi Stephen,
I do the same thing to log on to other NT workstations..

DECLARE INTEGER WNetAddConnection IN win32api;
STRING, STRING, STRING

** cPrimaryComputer = The Computer's Name eg. \\REG-001
** cNetPass = If password is different from your current computer
** cdrive = drive name you want to uses as eg. A: or x: or n:

nRetval= WNetAddConnection(cPrimaryComputer,cNetPass,cDrive)

IF nRetval=0 OR nRetval=85 the connection is OK.
Otherwise there is a problem.
Fred Besterwitch, MCP

The harder you work. The luckier you get.
Previous
Reply
Map
View

Click here to load this message in the networking platform