Windows Server 2003
1826554 Members
4329 Online
109695 Solutions
New Discussion

system and user process in windows server 2003

 
ManojKumar
Advisor

system and user process in windows server 2003

Hi all,

I am using windows server 2003 .

we have two processes- one user and one system(windows service) ---through my program i am able to use user process(some exe file) and default $HOMEPATH(C:\documents and settings\administrator) but when i am using system process(windows service) then everytime that $HOMEPATH value is null--- and by default it is taking "C:\Windows\system32\config\systemprofile" path .

Problem :I have to use default $HOMEPATH with this system process(windows service)--


any method is there to change the path or to change the process from system to user .

regards,
manoj

2 REPLIES 2
Ivan Ferreira
Honored Contributor

Re: system and user process in windows server 2003

I would try the following. Create a user account and tell the service to run as that user account. Then configure the user profile, and set the environment variable.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Alan_152
Honored Contributor

Re: system and user process in windows server 2003

Ivan's response would be the prefered way of doing it.

However, another popular way of doing this would be to use the "service" tools included with the Resource Kit to turn the user app into a service app.