Set-Location C:\Users\shichng\Desktop\test
$a=Get-ChildItem -Force -Recurse C:\Users\shichng\Desktop\test
foreach($b in $a)
{ $c=$b.name+".txt"
Rename-Item $b -NewName $c -Force
}
$a=Get-ChildItem -Force -Recurse C:\Users\shichng\Desktop\test -Include *.txt
foreach($b in $a)
{
$C=$b.name
$d=$c.TrimStart("")
rename-item $b -newname $d -force
}
$a=Get-ChildItem -Force -Recurse C:\Users\shichng\Desktop\test -Include *.txt
foreach($b in $a)
{
$c=get-content $b -totalcount 1
$d=$c+”.txt”
rename-item $b -newname $d -force
}
-
PS中的一些积累
一些PS中的遇到的技巧
图层 背景图 菜单栏 -
BREW 应用开发中的一些原则brew 编译器 语言 null 存储
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M