PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → Service on a server for a specific user
Service on a server for a specific user
Iniciado por guest, 13,may. 2015 12:25 - 2 respuestas
Publicado el 13,mayo 2015 - 12:25
I've build a service with WD18. Ik works fine on several computers.

The service makes contact with HFSQL server on a PCSoft account. It copies small files from a specific map on the client-server and place them in a memo in the HFSQL server.
Then the original file will be deleted.

On the production server, the files are not deleted because the service has no delete rights.

The client where the service will run on a specific server gave me now a username and password.

I can not fill this in when I compile te service or when I make the setup.

Can someone tell me if and how I can solve this.

Many thanks,

Willy Hermans
Publicado el 13,mayo 2015 - 12:53
you can change this after the installation of the service.

Depending on you OS version the options may be slightly different but in the service preperties you will find the option to set one specific user/password.

If you want ot keep the service as standard as possible you can try to map your UNC to one drive letter when you start the service using NetworkConnect with the user provided by your client and delete the files from the driver you assign. <a class="ExternalLink" rel="nofollow" target="_blank" href="http://doc.windev.com/en-US/?3066002">http://doc.windev.com/en-US/&hellip;</a>

PS: Be carefull the password for this user can't expire or you end up with problems within a few days/months, if the password expires the service will stop working and it's dificult to debug.
Publicado el 20,mayo 2015 - 11:17
Hello,

In the initialising code of the project I've placed

Service.user = "a username"
Service.Password = "a Password"

and that was it. The client has reported that this works fine.

Thanks.

Willy Hermans