>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