Skip to content

Kenneth732/react-gallery

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rename files

# 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++
}

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 68.3%
  • CSS 27.9%
  • HTML 3.8%