I have 3 partial files that I need to merge to just 1 zip. When using this PowerShell script:
copy /b v9_setup.1 + v9_setup.2 + v9_setup.3 v9_setup.zip
I get this error:
Copy-Item : A positional parameter cannot be found that accepts argument 'v9_setup.2'. At line:1 char:1 + copy /b v9_setup.1 v9_setup.2 v9_setup.3 v9_setup.zip + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (:) [Copy-Item], ParameterBindingException + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.CopyItemCommand
I am using Windows 10 Pro.
copy
is the alias in powershell forcopy-item
LotPings is trying to say that you are trying to use thecopy
command from cmd rather than thecopy-item
cmdlet, because thecopy-item
cmdlet doesn't concatenate likecopy -b
does. Run your script in cmd and it should work. – BenH