Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Services and Drive Mapping
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00273238
Message ID:
00273251
Views:
24
>>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform