473,408 Members | 2,477 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

running windows services outside system32 folder

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
Jul 21 '05 #1
4 2236
Can you be more specific because windows services have nothing to do with
windows32 folder? What is it trying to do with windows32?

"Felipe Garcia" <#> wrote in message
news:uf**************@TK2MSFTNGP09.phx.gbl...
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

Jul 21 '05 #2
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

"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Can you be more specific because windows services have nothing to do with
windows32 folder? What is it trying to do with windows32?

"Felipe Garcia" <#> wrote in message
news:uf**************@TK2MSFTNGP09.phx.gbl...
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


Jul 21 '05 #3
Elp
On Mon, 6 Dec 2004 12:10:37 -0300, Felipe Garcia wrote:
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.
Jul 21 '05 #4
Ohh.... Application.StartupPath i didn't knew about this property.

Thanks.

I'll try this way

"Elp" <ro********@REMOVEME.hotmail.com> wrote in message
news:15****************************@40tude.net...
On Mon, 6 Dec 2004 12:10:37 -0300, Felipe Garcia wrote:
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.

Jul 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Jagdeesh | last post by:
Hai Colleagues, I am using Tomcat 4.1.24 and JDK 1.4.0_03 in my winXP machine. I've transferred a set of folders(containing jsp files) into tomcat's webapps directory(to /webapps/bob ,...
1
by: Venkat | last post by:
I just installed Visual Studio.Net 2003 and that is supposed to add that asp.net 1.1 extension. I got an error message while opening ASP.NET project.Error is : "visual studio.net has...
1
by: martin smith | last post by:
I have some old CBT software written in a package called IconAuthor. It uses Access database to store details of lessons, graphics filenames, sounds etc. The software creates a user DSN which...
4
by: Felipe Garcia | last post by:
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...
2
by: -Lost | last post by:
I had the PHP Startup: Unable to load dynamic library 'C:\php\ext\php_json.dll' - The specified module could not be found. I finally figured out the error. The problem is that the DLL relies on...
2
by: gracepaul | last post by:
hi all, Is it possible to place the WINDOWS\\system32 anywhere inside a machine. I have to create a folder inside WINDOWS\\system32 and check for its existance during runtime through c#...
1
by: =?Utf-8?B?U3ludGF4IDM3NzA3?= | last post by:
I have found lots of people talking about this issue, but no one seems to have a solution. I could really use some help here. Has anyone seen this or have any ideas? I have been running the...
3
by: xMetalDetectorx | last post by:
I have a small application that reads and writes to flat files located in the same folder as the executable. This is the code I'm using to insert it into the registry: RegistryKey rkApp =...
0
AmberJain
by: AmberJain | last post by:
Windows Autorun FAQs: List of autostart locations Linked from the Original article- "Windows Autorun FAQs: Description". Que: Can you list all the autostart locations for windows? Ans: Here is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.