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.
copyis the alias in powershell forcopy-itemLotPings is trying to say that you are trying to use thecopycommand from cmd rather than thecopy-itemcmdlet, because thecopy-itemcmdlet doesn't concatenate likecopy -bdoes. Run your script in cmd and it should work. - BenH