我是隨便我怎麼會作出這樣的設置文件夾設置爲只讀,如果到達上述尺寸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