If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Running an app on startup

Hi Guys

I need to do something quick on my win2k box. I have an exe with me and I would like that exe to be executed on startup with admin rights.

I plan to run a script that fires commands to a server at regular intervals (load testing), and I want to be able to do this whenever any user logs into my system. The script works with administrator as the user. I obviously have admin rights to my system.

I tried googling and found lot of methods to code hooks and stuff to do this. I do not have any C/C++ development environment (being a Java guy) but can request my IT dept. to provide me with one if it is absolutely necessary.

this is correct, the applications started by your startup folder will be run under the same account as the one who has logged in.

if you want to start an application with full rights, you could create a service which can do that.
for this you can use instsrv.exe which can be downloaded for free from microsoft since it is a part of the resource kit.

usage:
instsrv.exe &lt;name of service&gt; &lt;path to executable&gt;

example:
instsrv.exe MyService c:\test.exe

there is only one thing: not every program can be started as a service like this.

I haven't ever used any windows beyond 98... however, on 98 there are other methods or starting it up. One is with regestry (somthing I'm not a fan of describing how to do), the other is a file called "win.ini" in your windows dir.

dia_byte is right, only one disadvantage --&gt; it doesn't run with full rights, only with the rights of the user that is logged in... the only way to get past this is using the program as a service, or to use the runas service to specify another account...