running windows services outside system32 folder

  • Thread starter Thread starter Peter Rilling
  • Start date Start date
P

Peter Rilling

Can you be more specific because windows services have nothing to do with
windows32 folder? What is it trying to do with windows32?
 
I'm trying to load an specific file. But when i try to load that file the
service assumes that it's "application base" is c:\windows\system32

Why don't you simply give the full path of the file you are trying to load?
For example, if this file is located in your application's folder, use
Application.StartupPath and then append the name of your file.
 
I've built a windows service, but this service has it's environment
(assemblies, config files) in a folder like c:\myservice\includes.

But everytime that i need to load a file, the service always tries to look
inside windows\system32 folder.

Is there any workaround for this issue ?


Thanks

Felipe Garcia
 
I'm trying to load an specific file. But when i try to load that file the
service assumes that it's "application base" is c:\windows\system32
 
Ohh.... Application.StartupPath i didn't knew about this property.

Thanks.

I'll try this way
 
Back
Top