xcopy - invalid number of parameters

Discussion in 'Computer Support' started by Ron, Jul 28, 2004.

  1. Ron

    Ron Guest

    **** 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
    -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    Ron, Jul 28, 2004
    #1
    1. Advertising

  2. Ron

    Ingeborg Guest

    "Ron" <> wrote in news::

    > **** 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
    >


    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
    Ingeborg, Jul 28, 2004
    #2
    1. Advertising

  3. Ron

    Phantom Guest

    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" <> wrote in message news:...
    > **** 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
    > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    Phantom, Jul 28, 2004
    #3
  4. Ron

    Ron Guest

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

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

    "Phantom" <> wrote in message
    news:S3TNc.84$cv5.0@lakeread07...
    > 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" <> wrote in message news:...
    > > **** 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
    > > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

    >
    >




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

    Ron Guest

    **** 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$...
    > "Ron" <> wrote in news::
    >
    > > **** 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
    > >

    >
    > 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




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

    Cicero Guest

    "Ron" <> wrote in message news:...
    > **** 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
    >
    >

    <snipped>

    ======================
    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.
    Cicero, Jul 28, 2004
    #6
  7. Ron

    Ron Guest

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


    "Cicero" <> wrote in message
    news:jTTNc.10364$...
    >
    > <snipped>
    >
    > ======================
    > 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.
    >


    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
    -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    Ron, Jul 28, 2004
    #7
  8. Ron

    Tech Guest

    rsync
    Tech, Jul 28, 2004
    #8
  9. Ron

    Jamco Guest

    shouldn't it be \\ not //?
    "Ron" <> wrote in message news:41080c41$...
    > **** Post for FREE via your newsreader at post.usenet.com ****
    >
    >
    > "Cicero" <> wrote in message
    > news:jTTNc.10364$...
    > >
    > > <snipped>
    > >
    > > ======================
    > > 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.
    > >

    >
    > 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
    > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    Jamco, Jul 28, 2004
    #9
  10. Ron

    Ron Guest

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

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

    You are correct. Thanks.

    "Jamco" <> wrote in message
    news:rZUNc.114367$Rf.68635@edtnps84...
    > shouldn't it be \\ not //?
    > "Ron" <> wrote in message

    news:41080c41$...
    > > **** Post for FREE via your newsreader at post.usenet.com ****
    > >
    > >
    > > "Cicero" <> wrote in message
    > > news:jTTNc.10364$...
    > > >
    > > > <snipped>
    > > >
    > > > ======================
    > > > 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.
    > > >

    > >
    > > 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
    > > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

    >
    >




    -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    *** Usenet.com - The #1 Usenet Newsgroup Service on The Planet! ***
    http://www.usenet.com
    Unlimited Download - 19 Seperate Servers - 90,000 groups - Uncensored
    -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    Ron, Jul 29, 2004
    #10
  11. "Ron" <> wrote in message news:...
    > **** 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
    > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


    Try:

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

    / is a command switch, so "//chi-" is probably being viewed as a command by
    xcopy.
    Sparky Polastri, Jul 29, 2004
    #11
  12. Ron

    mrgcav

    Joined:
    Dec 4, 2010
    Messages:
    1
    XCopy Symlinks and Junction points

    I tried using Norton Ghost 11 from a CD to Clone Win 7 OS1 to OS2 and it messed up both the OS2 copy and the source OS1. The copy boots and works for the most part but I can not install programs. SymLinks like Application data, Favorites, Templates etc... are missing from the C:/users/all users.
    Ghost would not copy Symlinks and junction points. Even worse it deleted Symlinks and junction points for the C:/Users/ All users directory in both OS's.
    I have never encountered such a problem.
    Now I need to rebuild the OS1 All users directory.
    I do not have a clue how to fix this without a total reinstall. Got any ideas on how to copy Symlinks and junction points without coping their contents ?
    I read Xcopy is able to copy Symlinks and junction points without coping their contents, using the /b option but I can not get the syntax correct.
    From another computer, With permissions set, Took ownership and tried; Xcopy C:/users/"all users" 2:/users/"backup" \b
    Resulted in 0 files copied/
    Why ??
    What is the correct command ?

    MRGCAV
    at gmail
    .com
    mrgcav, Dec 5, 2010
    #12
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?V2FsdGVyIEx1YmVsbA==?=

    Dos 6.22 XCopy command is not working properly

    =?Utf-8?B?V2FsdGVyIEx1YmVsbA==?=, Dec 30, 2003, in forum: Microsoft Certification
    Replies:
    0
    Views:
    902
    =?Utf-8?B?V2FsdGVyIEx1YmVsbA==?=
    Dec 30, 2003
  2. FrisbeeĀ®
    Replies:
    37
    Views:
    1,094
  3. Lance Malish

    Not sure I'm doing Xcopy right....

    Lance Malish, Jul 12, 2003, in forum: Computer Support
    Replies:
    2
    Views:
    679
    Lance Malish
    Jul 12, 2003
  4. Hank Sniadoch

    Hank Sniadoch, Aug 20, 2004, in forum: Computer Information
    Replies:
    1
    Views:
    509
    Wizard
    Aug 20, 2004
  5. kjsubbu

    invalid boot magic number

    kjsubbu, Mar 16, 2009, in forum: Cisco
    Replies:
    2
    Views:
    1,765
    Configs.com
    Jul 1, 2011
Loading...

Share This Page