我是随便我怎么会作出这样的设置文件夹设置为只读,如果到达上述尺寸A批处理文件批处理文件大小限
我走到这一步(1GB):
@echo off
color 0b
set /p slimit=Set Max file size:
set /p location=Folder Directory:
cls
color 0a
:loop
echo Limiting File "%location%" at %slimit%.
ATTRIB +R %location% /sd | if errorlevel 1 goto :next1
:next1
echo Limiting File "%location%" at %slimit%..
ATTRIB +R %location% /sd | if errorlevel 1 goto :next2
:next2
echo Limiting File "%location%" at %slimit%...
ATTRIB +R %location% /sd | if errorlevel 1 goto :next3
:next3
goto :loop
真的,我唯一能做的就是当它达到极限组时,它使用attrib
字符串。此外,错误级别可能会非常糟糕,我第一次使用错误级别。
是一个批处理脚本[真的是最好的解决方案(https://4sysops.com/archives/file-server-resource-manager-fsrm-part-3-quota-management/)在这里? – rojo