💻 Software
Why is xcopy returning "invalid number of parameters"?
Fresh5 days ago
Mar 15, 202642584 viewsConfidence Score0%
0%
Problem
Under some circumstances, xcopy will return the error without giving you a clue as to what’s going on. The usual solution for this is to be sure that your filenames are enclosed in quotes, as this can be an issue with batch files where you have something like and you really need . I recently ran in…
Error Output
C:\Temp\foo>c:/windows/system32/xcopy.exe /f /r /i /d /y * ..\bar\ Invalid number of parameters
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Why is xcopy returning "invalid number of parameters"?
Low Risk
The solution to this one was tricky: it turns out that xcopy is parsing the forward slashes in the path to its own binary. This works fine: You can also run into this if you have your defined using forward slashes instead of backslashes.
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix