Created
September 16, 2016 19:52
-
-
Save matt40k/f6beaa9b7da571ebb760903f7c0351e0 to your computer and use it in GitHub Desktop.
Add .csv file extension
This file contains hidden or 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
$folder = "C:\Users\MattSmith\OneDrive - Matt40k\Email" | |
$files = Get-ChildItem -Path $folder | |
foreach ($file in $files) { | |
#Write-Host $file | |
$oldName = "$folder\$file" | |
$newName = "$folder\$file.csv" | |
Rename-Item -Path $oldName -NewName $newName | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment