Last active
August 29, 2015 14:22
-
-
Save alexinnes/04354f4af99c9e80f3fe to your computer and use it in GitHub Desktop.
Create pages from CSV
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#specify the content here | |
$content = gc "content path here" | |
#Have a list of what the files will be called specified here | |
$port = import-csv "list path here" | |
#loops through the list, creating pages and adding the content | |
foreach($i in $port){ | |
Add-Content "C:\eco\export\$($i.Title)" $content -force | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment