>>>I have a VFP app running as a service on a NT machine. The problem I have is that the app needs to have a drive mapped to a different computer to run. Can I use the "WNetAddConnection" API to map a drive when no one is logged into the machine so the app will run right?
>>
>>Hi Chuck,
>>
>>You should be able to. By providing a null password, WNetAddConnection() will use the current user's password.
>
>
>But what if no one is logged in. The services still start but I will not have a drive mapped. Can I map a Drive when no one is logged in from a service?
Normally, a user name is associated with the workstation. Since the workstation has to be on...Anyway, you can supply the password to use, so it should be an issue. Not having access to an NT server, it's a bit difficult for me to provide more information than this. I'd try to set up testing as close to the actual environment, of course.
George
Ubi caritas et amor, deus ibi est