I have following powershell to move files from server to local. I keep getting path not found. The path is long like 280 characters + the file name is about 30 to 70 characters. What to do?
$destDir = "C:\test\Files\"
$csv = import-csv 'C:\test\FilesWithPath.csv'
#For each line in the CSV
$csv | % {
robocopy $_.SourceFilePath $destDir $_.SourceFileName
}