C # Access to UNC folder with credentials only in application context

I made an application (in C #) for backing up files. Suppose there is a NAS or Windows Server, I want to save zip files. At this point, I do not want users to have access to a specific unc folder (for example, \ 192.168.1.200 \ Backup). Having the credentials for this folder, can I access ONLY in the application context? Some "solutions" that I found when the application has access to the folder (works), then the current user has access from Explorer. When the application terminates after losing a bit and current user access.

+4
source share

No one has answered this question yet.


All Articles