G
Guest
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
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
I guess it means that its