Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help with Programmatically logging into an NT server
Message
From
25/04/2001 08:37:50
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
25/04/2001 08:27:54
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00499490
Message ID:
00499496
Views:
14
>I want to design a VFP executable that can be used to log a user into an NT server domain. The NET USE command from DOS accomplishes this task but I need to be able to obtain an error number or have the screen not release after posting a successful logon or unsuccessful login attempt. I have tried using the ">" to redirect the screen message to a file with no luck when called from a a click event of a VFP form. I am not able run a batch file because the username and password values are obtain from form controls. Does anyone have any suggestions has to how to obtain messages from the "net use" command???

Doug,
WNetAddConnection, WNetAddConnection2 and WNetAddConnection3 API provide this functionality. You'd have error info as return parameter.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform