Hi community,
I am trying to copy multiple files from a CSV file, running the script generates the following error.
Copy-Item : No se puede encontrar una parte de la ruta de acceso ‘D:\OneDrive\My Company Seguros\riesgos - Documentos\08. Control
Gesti�n Corresponsales\2019\VIDEO TOP 10\TOP 10 2019 Riesgos 5 def.mp4’.
The file CSV contain the next structure.
Source, Dest
D:\SPS2007\Riesgos\TOP 10 2019 Riesgos 5 def.mp4,D:\OneDrive\My Company Seguros\riesgos - Documentos\08. Control Gestión Corresponsales\2019\VIDEO TOP 10\TOP 10 2019 Riesgos 5 def.mp4
Where the source and dest values path are:
Source: D:\SPS2007\Riesgos\TOP 10 2019 Riesgos 5 def.mp4
Dest: D:\OneDrive\My Company Seguros\riesgos - Documentos\08. Control Gestión Corresponsales\2019\VIDEO TOP 10\TOP 10 2019 Riesgos 5 def.mp4
This is the script I use.
Import-Csv D:\SPS2007\Riesgos\TestTranscriptFile.csv -Delimiter “,” | foreach {Copy-Item -Path $.Source -Destination $.Dest}