BlueCY

共同进步

powershell批量重命名

 #change all filess name which in $path$path = "d:/000"$files = Get-ChildItem $pathforeach ($file in $files ) { # $head gets front two char...

2010-01-12 15:20:00

阅读数:880

评论数:0

批处理批量重命名

删除文件的前三个字符 @echo off &setlocal enabledelayedexpansionfor /r . %%i in (*.txt) do (        set filename=%%~ni        ren "%%i" !filename:...

2010-01-11 16:36:00

阅读数:439

评论数:0

power shell 删除空目录

$path= "d:/000"#Get-ChildItem -Recurse $path | Where-Object -FilterScript {$_.psiscontainer -eq $true} | Where-Object {($_.GetFiles().Count...

2010-01-06 16:52:00

阅读数:924

评论数:0

powershell删除空文件

$path = "d:/000"$items = Get-ChildItem  -Recurse $path |Where-Object -FilterScript {($_.psiscontainer -eq $false) -and ($_.length -eq 0)} i...

2010-01-06 16:49:00

阅读数:719

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭