@BobTheDestroyer
@lemy.lolI have a script that duplicates a Word doc template and renames each using a csv file with a list of names. What would be the equivalent code if instead of a csv file I use a text file?
Import-csv ‘.\individuals2.csv’ | foreach-object {
$newname = ‘2 ‘ + $_.name + '.docx’
Copy-item '.\template.docx' $newname
}
I'm a beginner to Powershell and CLI in general, but this task does not need to use either so I'm open to using other tools.
I'm trying to do the following:
Thanks in advance!