Skip to content

Instantly share code, notes, and snippets.

@DorukUlucay
Created July 9, 2019 11:18
Show Gist options
  • Save DorukUlucay/30033dc6fd7248d644a9f48938cb4d7c to your computer and use it in GitHub Desktop.
Save DorukUlucay/30033dc6fd7248d644a9f48938cb4d7c to your computer and use it in GitHub Desktop.
sequental rename in a dir
$i = 1
Get-ChildItem *.sql | %{Rename-Item $_ -NewName ('SomeFileName_{0:D2}.sql' -f $i++)}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment