Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help with Programmatically logging into an NT server
Message
De
25/04/2001 08:37:50
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
25/04/2001 08:27:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00499490
Message ID:
00499496
Vues:
13
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform