powshel 控制目录文件权限
2024-08-22 15:30:33
for($file=[IO.File]::OpenText("C:\Users\Administrator\Desktop\user_list.txt") ; !($file.EndOfStream);$line=$file.ReadLine() )
{
$url="D:\ftpfile\$line";
$a=Test-Path $url;
if ($a){
cacls $url /T /E /g ${line}:r
}
}
$file.Close()
最新文章
- zx一篇让Java程序猿随时可以翻看的Oracle总结
- ListView遍历每个Item出现NullPointerException的异常
- android服务之录音功能
- XAMPP和Bugfree详细教程
- loadrunner 如何做关联
- PHP迭代
- IDL---ENVI
- Unity Editor not displaying Android textures properly
- 触摸屏网站开发系列(一)-ios web App应用程序(ios meta)
- sizeof与类,继承,virtual的种种
- 【二分答案】【POJ3122】【Northwestern Europe 2006】Pie
- 蓝桥杯- 奇妙的数字-java
- jQuery的区别:$().click()和$(document).on('click','要选择的元素',function(){})的不同
- IIS Express总结
- 使用Java编译思想
- Spring系列__01HelloWorld
- java截取2个指定字符之间的字符串
- Maven 本地仓库,远程仓库,中央仓库,Nexus私服,镜像 详解
- Django用户验证框架
- Mac下使用Fiddler(转载园友小坦克)