473,782 Members | 2,492 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Changing working folder of services

Hi everybody,

I rewrote a component of us so that it is now a service. Unfortunateley the
service cannot start, because the third party product relies on expects to
be started from a special working folder. My service itself is placed in
this folder but when starting a service the working folder is always the
system folder AFAIK. Is it possible to changed this either using MMC or by
code?

Regards,
Michael

Dec 6 '05 #1
2 1100
Have you tried Directory.SetCu rrentDirectory?

Dec 6 '05 #2
Hi,

I managed it with System.Environm ent.CurrentDire ctory. It is similar to your
solution! Thanks!

Regards,
Michael

"Truong Hong Thi" <th*****@gmail. com> schrieb im Newsbeitrag
news:11******** **************@ g47g2000cwa.goo glegroups.com.. .
Have you tried Directory.SetCu rrentDirectory?

Dec 6 '05 #3

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

Similar topics

0
1149
by: code3_brent | last post by:
I created a DLL in VB6 that handles all the database access for some ASP pages that I created. The application basically authenticates the user against the database, does a search, reads a graphic file from the database, writes it to a folder on the server, then displays it in a browser. All was working great on my laptop with XP Pro. I now installed it on a 2003 server with IIS. I am now getting intermittant problems. Somtimes I get an...
8
4195
by: Topper | last post by:
Hello. I have simple web folders structure: -ROOT - BIN WebService.dll WebService.asmx I need to use my WebService.dll not in bin folder - for example, in ROOT. How do i this? How can i do this without .config file only with some configuration
0
1809
by: KeithZ | last post by:
I have created a very simple vb.net web service. It works fine on my local machine and every other machine I have installed it on. For the life of me I cannot get it to work on my production machine. Development Machine: - MS .NET Framework 1.1 Ver. 1.1.4322 - Visual Studio 2003 (where the apps are created) - IIS 5.1 App was installed via a Visual Studio Web Setup Project with no errors.
2
3721
by: aa | last post by:
I have installed IIS on win XP pro However I cannot find a control panel like PWS on w2k to change default folder. How do I do that?
1
4001
by: Smile | last post by:
I have installed the IIS on XP professional ,everytime i try to create a new web application it gives an error sayin that the web server is not started..... I have tried a lot of things.... 1)i checked if the service is working in the admin tools.services.IISAdmin yes its strated on automatic.All its related services have also started except for the world wide web publishing service. When i try to start it gives an error ..."could not...
0
931
by: spam | last post by:
Ok i have a solution which contains a exe and a dll. The exe references the dll via project references. I build the solution in release mode. In the release folder I can see the dll and exe built. I change the build configuration to debug to build a debug version. Note I haven't built it yet. Just the act of changing the build configuration deletes the dll from the release folder. In fact the same happens when I change back to release...
2
3875
by: sck10 | last post by:
Hello, I have a GridView that I built to show the files in a directory. The problem that I am having is that when I click on the second page (2), the GridView disappears. Also, I can't sort by any of the columns. Below is the code that I am using. Any help would be appreciated. Thanks, sck10
5
5360
by: DrNoose | last post by:
Hi! I may have made this post several weeks back, but not sure. I have a project due Thurs. The problem is when I copy the file the the local inetpub/wwwroot folder and try to run the aspx file from the local directory on the browser, it won't display. All my other files work fine. I can also open this file up in Visual Studios 2005 and do the "start without debugging" and it works fine. Why is it not working on the browser? All the...
5
3573
by: krasman | last post by:
hi everyone, i hope you might help me on this one. i need to create a contact in a exchange public folder using dotnet (vb or c#) and exchange 2003, without using outlook object model. i'm searching for a few hours and can't find a clear example on how to do it. i've already seen code blocks using webdav, directory services, but always related with creating active directory users or mail enabling users, not exactly what i'm looking for....
0
9479
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10311
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10146
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9942
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8967
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7492
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6733
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5509
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3639
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.