I have an app that saves xls and pdf files to a drive. We need this drive to be non-accessible by users here because we don't want anyone adding files or deleting files from this drive by hand.

We're considering leaving the drive unmapped on users' machines. If we do this, will I need to use the UNC path when saving files out of my .Net app since the drive isn't mapped on users' machines?

有帮助吗?

解决方案

If the drive is not mapped then yes, you need to access it via a UNC path. However, you should bear in mind that simply not mapping it will not completely stop them accessing it. By default, the app will run under their credentials; therefore anything the app can do, they can also do and vice versa. Even so, if it's not mapped, it will not be immediately visible and this may be sufficient.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top