pranav_vaidya
Member
Hi,
I am using VB 2008 and I am new to Windows services, actually building the first service in my career.
Here's my problem, I want my windows service to copy some files from the network drive to C drive (local disk). My service is configured as 'Local System' account and as this type of account can not access network resources I need to know how can I do this. I read few posts on the Internet and found that I can use Windows API or WMI or .Net techniques like 'Impersonate user'. I do not want to use a system tray application etc as user's have control over it.
I don't want the service to be running under user account as I think there would be problems if the user changes his/her password in future. I also do not know password of each user so I think I may have difficulties in Impersonating the users.
Also I am not sure of the UNC path of the network drives as the users are located in different offices. All that I know is the path to folder from where the files need to be copied for example 'J:\Application Files\MyApp\'
Can you please suggest a way through.
Thanks in advance,
Pranav
PN-MH, India
I am using VB 2008 and I am new to Windows services, actually building the first service in my career.
Here's my problem, I want my windows service to copy some files from the network drive to C drive (local disk). My service is configured as 'Local System' account and as this type of account can not access network resources I need to know how can I do this. I read few posts on the Internet and found that I can use Windows API or WMI or .Net techniques like 'Impersonate user'. I do not want to use a system tray application etc as user's have control over it.
I don't want the service to be running under user account as I think there would be problems if the user changes his/her password in future. I also do not know password of each user so I think I may have difficulties in Impersonating the users.
Also I am not sure of the UNC path of the network drives as the users are located in different offices. All that I know is the path to folder from where the files need to be copied for example 'J:\Application Files\MyApp\'
Can you please suggest a way through.
Thanks in advance,
Pranav
PN-MH, India