1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Copying files using a batch file?

Discussion in 'Windows XP' started by gazmysta, Jan 28, 2005.

Thread Status:
Not open for further replies.
  1. gazmysta

    gazmysta Thread Starter

    Joined:
    Nov 6, 2003
    Messages:
    90
    Hi Guys,

    Im trying to copy a file from one folder to another but the batch file is not working, it says incorrect syntax. the command line im using is:

    COPY C:\TEST *.* C:\BACKDIR

    Does anyone know why this isnt working?

    Thanks
     
  2. gazmysta

    gazmysta Thread Starter

    Joined:
    Nov 6, 2003
    Messages:
    90
    Ok, ive manage to get it working and it copies the file across using:

    C:
    XCOPY C:\test C:\backdir

    But what i want to do is copy the personal folder in outlook to this file. So when i change it to:

    C:
    XCOPY C:\Documents and settings\[username]\...........\outllook C:\backdir

    Its failing again with the error "Invalid number of parameters"?
     
  3. DoubleHelix

    DoubleHelix Banned

    Joined:
    Dec 9, 2004
    Messages:
    24,388
    You need quotes around path names with spaces:
    "C:\Documents and Settings\<username>\...."

    And try a trailing backslash at the end of the destination folder. You don't want to copy a folder to a file. You want to copy a folder to a folder.

    C:\Backdir\
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Similar Threads - Copying files using
  1. SilverSurf
    Replies:
    1
    Views:
    377
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/324261

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice