Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $filenames = Get-Content ~\Desktop\filenames.txt
- $template = Get-Content ~\Desktop\template.txt
- ForEach ($name in $filenames) { $template -replace ("%%%", $name) | Out-File -Append ~\Desktop\output.txt }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement