accessing network share (z:\) from a windows service

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi,

I have a c# code wich copies files from the z: to the local harddrive.
The code works fine when just running it in a windows application.
Because i want to create a service with the same functionality i copied the same code into the onStart() of the service surrounded by a try /catch with logs to the eventlog.
In the eventlog i do see that it enters the catch with the error "could not find path z:". I dont know what is happening here.
Anybody an Idea?

grtz

Annihil8

View the full article
 


Write your reply...
Back
Top