AxeEnding999

Powershell

Mar 6th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. $filenames = Get-Content ~\Desktop\Apple\filelist.txt
  2. $template = Get-Content ~\Desktop\Apple2\template.txt
  3.  
  4. ForEach ($name in $filenames) { $template -replace ("%%%", $name) | Out-File -Append ~\Desktop\Apple2\output.txt }
Advertisement
Add Comment
Please, Sign In to add comment