<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1250">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1">
<TITLE>RE: [DUG] Windows Services</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>I have just figured out, and we have had the same issue the VB project under Visual Studio, that my application only start if it run from my local PC hard drive. If the program is on our server, and compiles, runs and installs ok, but when you try to start the service we get the Access denied error. However, if it is on ahe local PC hard disk, compile, run and install, and then start the service it works fine.</FONT></P>
<P><FONT SIZE=2>Any thoughts?</FONT>
</P>
<P><FONT SIZE=2>Eion</FONT>
</P>
<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: delphi-bounces@ns3.123.co.nz</FONT>
<BR><FONT SIZE=2>[<A HREF="mailto:delphi-bounces@ns3.123.co.nz">mailto:delphi-bounces@ns3.123.co.nz</A>]On Behalf Of Jeremy Coulter</FONT>
<BR><FONT SIZE=2>Sent: Wednesday, 22 November 2006 6:15 p.m.</FONT>
<BR><FONT SIZE=2>To: 'NZ Borland Developers Group - Delphi List'</FONT>
<BR><FONT SIZE=2>Subject: RE: [DUG] Windows Services</FONT>
</P>
<BR>
<P><FONT SIZE=2>Yes...thats what I meant. I typed my message in a hurry trying to get out</FONT>
<BR><FONT SIZE=2>the door at work :-)</FONT>
</P>
<P><FONT SIZE=2>Jeremy </FONT>
</P>
<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: delphi-bounces@ns3.123.co.nz [<A HREF="mailto:delphi-bounces@ns3.123.co.nz">mailto:delphi-bounces@ns3.123.co.nz</A>] On</FONT>
<BR><FONT SIZE=2>Behalf Of Dennis Chuah</FONT>
<BR><FONT SIZE=2>Sent: 22 November 2006 18:05</FONT>
<BR><FONT SIZE=2>To: NZ Borland Developers Group - Delphi List</FONT>
<BR><FONT SIZE=2>Subject: Re: [DUG] Windows Services</FONT>
</P>
<BR>
<P><FONT SIZE=2>Its not you, but the user that the service runs under. By default, this is</FONT>
<BR><FONT SIZE=2>the SYSTEM user, which does not have many rights. Try changing the</FONT>
<BR><FONT SIZE=2>configuration of the service to a user with more rights.</FONT>
</P>
<P><FONT SIZE=2>----- Original Message -----</FONT>
<BR><FONT SIZE=2>From: "Eion McIntosh (Christchurch)" <e.mcIntosh@ppcs.co.nz></FONT>
<BR><FONT SIZE=2>To: "NZ Borland Developers Group - Delphi List" <delphi@ns3.123.co.nz></FONT>
<BR><FONT SIZE=2>Sent: Wednesday, November 22, 2006 5:02 PM</FONT>
<BR><FONT SIZE=2>Subject: RE: [DUG] Windows Services</FONT>
</P>
<BR>
<P><FONT SIZE=2>I do have rights to my pc, but it must be something else, because I managed </FONT>
<BR><FONT SIZE=2>to get a simple service running earlier this afternoon, but now I have made </FONT>
<BR><FONT SIZE=2>my main program I am getting the error.</FONT>
<BR><FONT SIZE=2>I have tried commenting everything out so it appears to be the same as </FONT>
<BR><FONT SIZE=2>earlier this afternoon, but still getting an error.</FONT>
</P>
<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: delphi-bounces@ns3.123.co.nz [<A HREF="mailto:delphi-bounces@ns3.123.co.nz">mailto:delphi-bounces@ns3.123.co.nz</A>]On </FONT>
<BR><FONT SIZE=2>Behalf Of Jeremy Coulter</FONT>
<BR><FONT SIZE=2>Sent: Wednesday, 22 November 2006 4:49 p.m.</FONT>
<BR><FONT SIZE=2>To: 'NZ Borland Developers Group - Delphi List'</FONT>
<BR><FONT SIZE=2>Subject: RE: [DUG] Windows Services</FONT>
</P>
<BR>
<P><FONT SIZE=2>its the old windows services permissions issue.</FONT>
<BR><FONT SIZE=2>All you need to do is run the service as someone with administrator rights, </FONT>
<BR><FONT SIZE=2>or atleast with read access to the folder where the ini file is stored, and </FONT>
<BR><FONT SIZE=2>you should be ok.</FONT>
</P>
<P><FONT SIZE=2>Jeremy</FONT>
</P>
<P><FONT SIZE=2> _____</FONT>
</P>
<P><FONT SIZE=2>From: delphi-bounces@ns3.123.co.nz [<A HREF="mailto:delphi-bounces@ns3.123.co.nz">mailto:delphi-bounces@ns3.123.co.nz</A>] On </FONT>
<BR><FONT SIZE=2>Behalf Of Eion McIntosh (Christchurch)</FONT>
<BR><FONT SIZE=2>Sent: 22 November 2006 16:39</FONT>
<BR><FONT SIZE=2>To: delphi@ns3.123.co.nz</FONT>
<BR><FONT SIZE=2>Subject: [DUG] Windows Services</FONT>
</P>
<BR>
<BR>
<P><FONT SIZE=2>Hi</FONT>
</P>
<P><FONT SIZE=2>I am creating a new windows service for checking if some specific programs </FONT>
<BR><FONT SIZE=2>are running. When the service starts I want to read in a ini file with a </FONT>
<BR><FONT SIZE=2>list of programs to look for, but I am getting an Error 5 Access Denied when</FONT>
</P>
<P><FONT SIZE=2>is starts.</FONT>
</P>
<P><FONT SIZE=2>Can you read of text file for a service program and if so were should it be </FONT>
<BR><FONT SIZE=2>stored to be read? I've tried it under the WinNT and System32 and C: but </FONT>
<BR><FONT SIZE=2>still am getting the error? Running on Win2k.</FONT>
</P>
<P><FONT SIZE=2>Regards</FONT>
<BR><FONT SIZE=2>Eion McIntosh</FONT>
<BR><FONT SIZE=2>PPCS Ltd</FONT>
</P>
<BR>
<P><FONT SIZE=2>--</FONT>
<BR><FONT SIZE=2>No virus found in this incoming message.</FONT>
<BR><FONT SIZE=2>Checked by AVG Free Edition.</FONT>
<BR><FONT SIZE=2>Version: 7.1.409 / Virus Database: 268.14.12/544 - Release Date: 21/11/2006</FONT>
</P>
<BR>
<BR>
<BR>
<BR>
<P><FONT SIZE=2>--</FONT>
<BR><FONT SIZE=2>No virus found in this outgoing message.</FONT>
<BR><FONT SIZE=2>Checked by AVG Free Edition.</FONT>
<BR><FONT SIZE=2>Version: 7.1.409 / Virus Database: 268.14.12/544 - Release Date: 21/11/2006</FONT>
</P>
<BR>
<BR>
<BR>
<BR>
<P><FONT SIZE=2>----------------------------------------------------------------------------</FONT>
<BR><FONT SIZE=2>----</FONT>
</P>
<BR>
<P><FONT SIZE=2>> _______________________________________________</FONT>
<BR><FONT SIZE=2>> Delphi mailing list</FONT>
<BR><FONT SIZE=2>> Delphi@ns3.123.co.nz</FONT>
<BR><FONT SIZE=2>> <A HREF="http://ns3.123.co.nz/mailman/listinfo/delphi">http://ns3.123.co.nz/mailman/listinfo/delphi</A></FONT>
<BR><FONT SIZE=2>> </FONT>
</P>
<P><FONT SIZE=2>_______________________________________________</FONT>
<BR><FONT SIZE=2>Delphi mailing list</FONT>
<BR><FONT SIZE=2>Delphi@ns3.123.co.nz</FONT>
<BR><FONT SIZE=2><A HREF="http://ns3.123.co.nz/mailman/listinfo/delphi">http://ns3.123.co.nz/mailman/listinfo/delphi</A></FONT>
</P>
<P><FONT SIZE=2>-- </FONT>
<BR><FONT SIZE=2>No virus found in this incoming message.</FONT>
<BR><FONT SIZE=2>Checked by AVG Free Edition.</FONT>
<BR><FONT SIZE=2>Version: 7.1.409 / Virus Database: 268.14.12/544 - Release Date: 21/11/2006</FONT>
<BR><FONT SIZE=2> </FONT>
</P>
<P><FONT SIZE=2>-- </FONT>
<BR><FONT SIZE=2>No virus found in this outgoing message.</FONT>
<BR><FONT SIZE=2>Checked by AVG Free Edition.</FONT>
<BR><FONT SIZE=2>Version: 7.1.409 / Virus Database: 268.14.12/544 - Release Date: 21/11/2006</FONT>
<BR><FONT SIZE=2> </FONT>
</P>
<BR>
<BR>
<P><FONT SIZE=2>_______________________________________________</FONT>
<BR><FONT SIZE=2>Delphi mailing list</FONT>
<BR><FONT SIZE=2>Delphi@ns3.123.co.nz</FONT>
<BR><FONT SIZE=2><A HREF="http://ns3.123.co.nz/mailman/listinfo/delphi">http://ns3.123.co.nz/mailman/listinfo/delphi</A></FONT>
</P>
</BODY>
</HTML>