Hi Support Team,
I am running the below command in PowerShell and getting below error message but still the data gets copied over:
PS C:\AWARDS> Get-Content .\AACE001N.txt | Foreach-Object { copy-item -Path $_ -Destination C:\AWARDS\AACE001N\}
[highlight #CC0000]Copy-Item : Cannot bind argument to parameter 'Path' because it is an empty string.
At line:1 char:63
+ ... -Content .\AACE001N.txt | Foreach-Object { copy-item -Path $_ -Destin ...
+ ~~
+ CategoryInfo : InvalidData: ) [Copy-Item], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Microsoft.PowerShell.Commands.Copy
ItemCommand
[/highlight]
Thank you for your support
I am running the below command in PowerShell and getting below error message but still the data gets copied over:
PS C:\AWARDS> Get-Content .\AACE001N.txt | Foreach-Object { copy-item -Path $_ -Destination C:\AWARDS\AACE001N\}
[highlight #CC0000]Copy-Item : Cannot bind argument to parameter 'Path' because it is an empty string.
At line:1 char:63
+ ... -Content .\AACE001N.txt | Foreach-Object { copy-item -Path $_ -Destin ...
+ ~~
+ CategoryInfo : InvalidData: ) [Copy-Item], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Microsoft.PowerShell.Commands.Copy
ItemCommand
[/highlight]
Thank you for your support