I do have rights to my pc, but it must be something else, because I managed to 
get a simple service running earlier this afternoon, but now I have made my 
main program I am getting the error.
I have tried commenting everything out so it appears to be the same as earlier 
this afternoon, but still getting an error.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Jeremy Coulter
Sent: Wednesday, 22 November 2006 4:49 p.m.
To: 'NZ Borland Developers Group - Delphi List'
Subject: RE: [DUG] Windows Services


its the old windows services permissions issue.
All you need to do is run the service as someone with administrator rights, or 
atleast with read access to the folder where the ini file is stored, and you 
should be ok.
 
Jeremy

  _____  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eion McIntosh 
(Christchurch)
Sent: 22 November 2006 16:39
To: [email protected]
Subject: [DUG] Windows Services



Hi 

I am creating a new windows service for checking if some specific programs are 
running. When the service starts I want to read in a ini file with a list of 
programs to look for, but I am getting an Error 5 Access Denied when is starts.

Can you read of text file for a service program and if so were should it be 
stored to be read? I've tried it under the WinNT and System32 and C: but still 
am getting the error? Running on Win2k.

Regards 
Eion McIntosh 
PPCS Ltd 


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.14.12/544 - Release Date: 21/11/2006





--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.14.12/544 - Release Date: 21/11/2006


_______________________________________________
Delphi mailing list
[email protected]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to