© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
1 reply
DeeJayh

Copying files from network path (c, .net)

File.Copy
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!
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Copying from files [Answered]
C#CC# / help
4y ago
Blockchain Network using C#/ASP.NET/.NET
C#CC# / help
3y ago
✅ Reading .txt files in C# .net
C#CC# / help
2y ago
✅ C# Learning Path
C#CC# / help
10mo ago