Forum Discussion

zhmizi520's avatar
zhmizi520
Copper Contributor
Oct 06, 2024

Question about ‘get-childitem | rename-item’ have a bug

If i have 20 .txt file 。   1..20 | foreach-object {new-item -type file .\$_.txt} get-childitem | rename-item -newname {"newfile$_"}    You will get picture 1 . But if you have 50 .txt fi...

Resources