DeeJayh
DeeJayh
CC#
Created by DeeJayh on 11/29/2022 in #help
Copying files from network path (c, .net)
File.Copy cannot access the network share because it doesn't have the same access as the user running it. Impersonating a domain user given access works to see/obtain the files, but then doesn't have access to the user's/system's folders. I could mitigate that by going to each computer and giving that domain user access to a folder on the drive, and there may even be some easy AD way to do that I'm not aware of, but currently the solution is escaping me here and I could use some input. Thanks in advance!
2 replies