This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(5)
请记住,磁盘配额是针对每个用户而不是针对每个文件夹的,还有其他解决方案可以让您锁定文件夹大小,而不管用户如何,我的经验是使用 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.
您的意思是磁盘配额,如http://www.windowsnetworking.com/articles_tutorials/Configuring-Disk-Quotas-Windows-2003.html?
Do you mean disk quotas as described at, e.g. http://www.windowsnetworking.com/articles_tutorials/Configuring-Disk-Quotas-Windows-2003.html?
查看 NTFS 文件系统的配额。
Have a look at Quotas for NTFS file systems..
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.)
这取决于您想要的限制程度。 :)
例如,编写一个程序来侦听/监视文件夹并在用户超出配额时显示消息框错误/警告并不困难。 但这并不阻止他超过它——只是通知他他这样做了。
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.