473,382 Members | 1,348 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,382 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 2231
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.