468,740 Members | 1,960 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,740 developers. It's quick & easy.

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 2109
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by JP | last post: by
10 posts views Thread by Ger | last post: by
27 posts views Thread by pisquem | last post: by
10 posts views Thread by dermot | last post: by
1 post views Thread by CARIGAR | last post: by
xarzu
2 posts views Thread by xarzu | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.