Tech Support > Computers & Technology > xcopy - invalid number of parameters
xcopy - invalid number of parameters
Posted by Ron on July 28th, 2004


**** Post for FREE via your newsreader at post.usenet.com ****

Can someone explain to me why this generates the error "Invalid number of
parameters" and what I am missing?

xcopy //chi-dc1/iamacro$/IAMacro.dot c:\documents and
settings\%username%\application data\microsoft\word\startup /r /k /y



-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
*** Usenet.com - The #1 Usenet Newsgroup Service on The Planet! ***
http://www.usenet.com
Unlimited Download - 19 Seperate Servers - 90,000 groups - Uncensored
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Posted by Ingeborg on July 28th, 2004


"Ron" <Me@ScrewSpam.com> wrote in news:4107e9e7@post.usenet.com:

You must use quotes in filenames containing spaces:

xcopy //chi-dc1/iamacro$/IAMacro.dot "c:\documents and
settings\%username%\application data\microsoft\word\startup" /r /k /y

Posted by Phantom on July 28th, 2004


Uninstall X-copy, reboot computer then re-install software. Looks like it
can't find a place to place the tempy files it makes or there isn't enough
space to process files on your hard drive. You will need at least 4 gig.
"Ron" <Me@ScrewSpam.com> wrote in message news:4107e9e7@post.usenet.com...


Posted by Ron on July 28th, 2004


**** Post for FREE via your newsreader at post.usenet.com ****

Oh I'll get right on that... Jackass..

"Phantom" <someone@microsoft.com> wrote in message
news:S3TNc.84$cv5.0@lakeread07...


-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
*** Usenet.com - The #1 Usenet Newsgroup Service on The Planet! ***
http://www.usenet.com
Unlimited Download - 19 Seperate Servers - 90,000 groups - Uncensored
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Posted by Ron on July 28th, 2004


**** Post for FREE via your newsreader at post.usenet.com ****

No, that's what I first thought but it doesn't work that way either.

C:\Scripts>xcopy //chi-dc1/iamacro$/IAMacro.dot "c:\documents and
settings\rstat
on\application data\microsoft\word\startup\" /r /k /y
Invalid number of parameters

"Ingeborg" <-> wrote in message
news:3881c$4107fa28$50f2fe8a$16071@news.multikabel .nl...


-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
*** Usenet.com - The #1 Usenet Newsgroup Service on The Planet! ***
http://www.usenet.com
Unlimited Download - 19 Seperate Servers - 90,000 groups - Uncensored
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Posted by Cicero on July 28th, 2004



"Ron" <Me@ScrewSpam.com> wrote in message news:4107e9e7@post.usenet.com...

======================
I think (maybe wrong) that it's the use of % signs causing the problem. The
Xcopy command may be trying to interpret the % signs as replaceable
parameters as used in early versions of Xcopy / batch files. Although
replaceable parameters aren't mentioned in the help for Win2000 version of
Xcopy replaceable parameters still work. Can you substitute something else
for the % signs to see if it works?

Cic.




Posted by Ron on July 28th, 2004


**** Post for FREE via your newsreader at post.usenet.com ****


"Cicero" <sheldrake@hellfire.co.uk> wrote in message
news:jTTNc.10364$2b6.104368190@news-text.cableinet.net...
I don't think that's it because when the script is run the screen does show
the actual username in place of the variable.

IE:

C:\Scripts>xcopy //chi-dc1/iamacro$/IAMacro.dot "c:\documents and
settings\rstat
on\application data\microsoft\word\startup\" /r /k /y
Invalid number of parameters



-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
*** Usenet.com - The #1 Usenet Newsgroup Service on The Planet! ***
http://www.usenet.com
Unlimited Download - 19 Seperate Servers - 90,000 groups - Uncensored
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Posted by Tech on July 28th, 2004



rsync

Posted by Jamco on July 28th, 2004


shouldn't it be \\ not //?
"Ron" <Me@ScrewSpam.com> wrote in message news:41080c41$1@post.usenet.com...


Posted by Ron on July 29th, 2004


**** Post for FREE via your newsreader at post.usenet.com ****

.....what the hell was I thinking.

You are correct. Thanks.

"Jamco" <Homer@jamcojams.com> wrote in message
news:rZUNc.114367$Rf.68635@edtnps84...


-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
*** Usenet.com - The #1 Usenet Newsgroup Service on The Planet! ***
http://www.usenet.com
Unlimited Download - 19 Seperate Servers - 90,000 groups - Uncensored
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Posted by Sparky Polastri on July 29th, 2004



"Ron" <Me@ScrewSpam.com> wrote in message news:4107e9e7@post.usenet.com...
Try:

\\chi-dc1\ etc. (Backslash, not forward slash)

/ is a command switch, so "//chi-" is probably being viewed as a command by
xcopy.




Similar Posts