Wed. Jun 8th, 2022

Rename

Rename-Files

Function Rename-Files { param ([string]$FilePath) $files = Get-ChildItem $FilePath -Recurse foreach ($File in $Files) { $pos = $File.Name.IndexOf(".") $Left = $File.Name.Substring(0, $pos) $Right = $File.Name.Substring($pos) $DefaultFileName = $Left + '.aspx'…

This website uses cookies. By continuing to use this site, you accept our use of cookies.