Completely new to this and I am trying to run this simple script to take my source file and copy\rename to a new location.
SAMPLE CSV:
ORGINALFILENAME,NEWFILENAME
G:\Academy\Client Images\374.jpg,E:\Images_Renamed\T00002US01_374.jpg
G:\Academy\Client Images\374-1.JPG,E:\Images_Renamed\T00002US02_374-1.JPG
Script:
Import-Csv e:\scripts\copyimg.csv -Delimter "," | % { Copy-Item -Path $_.ORGINALFILENAME -Destination "E:\Images_Renamed\$($_.NEWFILENAME)
Error:
Copy-Item : The given path's format is not supported.
At line:1 char:54
Any help to point me in the correct direction will help. Thanks!