472,780 Members | 1,397 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

How To: Save the export of a windows system service on a network s

I have a windows service that runs as a system service (so noone has to be
logged in for the service to work). A part of the service contains code to
export the results in a file. This is where the problem is. The same code
should also work on a client (front-end), but that is another (already
solved) issue.

At first I was thinking of having the results written to a local path, but
the my client wants it at a share at one of their file servers.

The thing that I had:
- I used wmi to check a certain drive / directory on file names and
extensions. Since I'm dealing with an automated process. The idea is to
export the data of one kind of process data in filenameA and have the
extension run up from .000 to .999 (which is outraguously too much anyways).
In that case I would create files like: filenameA.001
after the check I'd know what the next filename should be. and then write it
to the location.

But now I have to do it on a remote location.

So the question really is this: Can I write files to a remote location
(Fileserver in lan) with my windows service (if it goes for the service it
goes for the front-end client)

And if the answer is yes then my question would be: How?

I thank you in advance
Jan 4 '06 #1
1 2198
Still no reply?
I didn't know my question would be that hard :( I guess it means that its
impossible then

"SL33PY" wrote:
I have a windows service that runs as a system service (so noone has to be
logged in for the service to work). A part of the service contains code to
export the results in a file. This is where the problem is. The same code
should also work on a client (front-end), but that is another (already
solved) issue.

At first I was thinking of having the results written to a local path, but
the my client wants it at a share at one of their file servers.

The thing that I had:
- I used wmi to check a certain drive / directory on file names and
extensions. Since I'm dealing with an automated process. The idea is to
export the data of one kind of process data in filenameA and have the
extension run up from .000 to .999 (which is outraguously too much anyways).
In that case I would create files like: filenameA.001
after the check I'd know what the next filename should be. and then write it
to the location.

But now I have to do it on a remote location.

So the question really is this: Can I write files to a remote location
(Fileserver in lan) with my windows service (if it goes for the service it
goes for the front-end client)

And if the answer is yes then my question would be: How?

I thank you in advance

Jan 5 '06 #2

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

Similar topics

2
by: Ken Lindner | last post by:
I have a need to become familiar with SQL Server 2000 for work. Needless to say I am new to SQL Server any version, but not IT in general. My employer has provided me with the SQL Server 2000...
2
by: JP | last post by:
Can anybody explain me , what is Local System , Local Service and Network Service and how they practically differ from each other. --JP
6
by: Bijesh | last post by:
Hi All, I've developed a Windows Service that acts as a remoting server (.NET Remoting). The client(user) is able to connect to the server and start a program by giving the executable path of...
10
by: Ger | last post by:
I am having problems using VB.Net's Management base object on a machine hosting Windows Server 2003. I am trying to set file permissions from a Windows Service. These files may be loacted on a...
3
by: Miriam | last post by:
Hello, I created a Windows Service in VB.NET, which is to purge files periodically in the local system and also in the shared network drive. Here is my problem: 1. If I set the “Account”...
27
by: pisquem | last post by:
I am building an windows service that is to be deployed on a windows server 2003 and I want to have activity written to the event log, I want its own log called ('CustomLog') Below is what I...
10
by: dermot | last post by:
I have wrriten a small windows service application in visual studio ..net 2003 which listens for incoming FTP files. These files would overwrite over time due to duplicate file names. However any...
15
by: =?Utf-8?B?TVNU?= | last post by:
To demonstrate my problem, I have a very simple VB Windows application. It has a text box that is used to display a counter, a button to reset the counter, and a timer that increments the counter...
1
by: eblackmo | last post by:
I have a test network consisting of four servers running windows 2003 server R2 SP2. I have set up a domain which functioned correctly for about a day and a half until the other servers decided they...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.