Windows环境下可以限制文件夹大小吗?

发布于 2024-07-13 14:42:02 字数 1552 浏览 5 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

转角预定愛 2024-07-20 14:42:02

请记住,磁盘配额是针对每个用户而不是针对每个文件夹的,还有其他解决方案可以让您锁定文件夹大小,而不管用户如何,我的经验是使用 Veritas Storage Exec,但它似乎已停止使用。

Keep in mind that Disk Quotas are per user not per folder, there are other solutions that will allow you to lock down a folder size regardless of user, my experience has been with Veritas Storage Exec, but it seems to be discontinued.

晚雾 2024-07-20 14:42:02

查看 NTFS 文件系统的配额

Have a look at Quotas for NTFS file systems..

ˉ厌 2024-07-20 14:42:02

Windows Server 2008 管理员助手建议使用文件服务器资源管理器而不是旧的“磁盘配额”功能因为这些允许每个目录设置。 (我自己对这个工具并不熟悉;使用了 5 分钟后,我仍然不知道如何实际执行此操作。但是,肯定有一列“配额”。)

另一个技巧是创建一个新卷,然后使用符号链接(请参阅 MKLINK )将目录映射到该卷。 (MKLINK 是 Vista/2008 及更高版本;对于 XP/2003,请使用 NTFS 联结.)

The Windows Server 2008 Administrator's Companion recommends using the File Server Resource Manager instead of the older "disk quota" feature since these allow per-directory settings. (I'm not familiar with this tool myself; after 5 mins of playing around with it, I still have no idea how to actually do this. There certainly is a column for "quota", however.)

Another trick is to create a new volume and then use a symbolic link (see MKLINK) to map the directory to that volume. (MKLINK is Vista/2008 and later; for XP/2003 use NTFS junctions.)

喵星人汪星人 2024-07-20 14:42:02

这取决于您想要的限制程度。 :)

例如,编写一个程序来侦听/监视文件夹并在用户超出配额时显示消息框错误/警告并不困难。 但这并不阻止他超过它——只是通知他他这样做了。

It depends on how limiting you want to be. :)

For example, it's not difficult to write a program that listens/monitors a folder and displays a message box error/warning in case the user exceeds his quota. But that doesn't prevent him from exceeding it - just notifies him he did so.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文