# Set the starting index
$i = 1
# Get all PNG files in the current directory
$files = Get-ChildItem -Filter *.png
# Loop through each file and rename it
foreach ($file in $files) {
# Construct the new filename
$newFilename = "p${i}.png"
# Rename the file
Rename-Item -Path $file.FullName -NewName $newFilename
Write-Output "Renamed $($file.Name) to $newFilename"
# Increment the index
$i++
}
forked from Kenneth12222/react-gallery
-
Notifications
You must be signed in to change notification settings - Fork 0
Kenneth732/react-gallery
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- JavaScript 68.3%
- CSS 27.9%
- HTML 3.8%