Replace & Rename Files with Powershell

Опубликовано: 31 Октябрь 2024
на канале: Code Doge
8,806
94

Please follow me on Twitter to get more updates on memes, tech news, devops/developer content!
  / codedoge4  

#powershell #replacefiles #renamefiles #replace #rename

This script covers how to find files based on a pattern or keyword and then replace all of those files with a different file with a certain pattern or keyword.

Its versatile and easy to modify to fit your specific needs.

Utilizes Get-Childitem with filters, Remove-Item, and Rename-item commandlets.

Important Time Stamps
00:00 - Intro
0:23 - Example of what the script does
1:20 - Start of the Script, declaring parameters
2:32 - Filtered Get-Childitem
3:19 - Rest of the logic using Remove-item and Rename-Item
4:59 - Running the scripts a 2nd time with different parameters
5:45 - Adding Test-Path to confirm whether or not the file exists before executing actions


Github Project Link : https://github.com/jc566/Youtube_Solu...