Xcopy problem
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: Xcopy problem

  1. #1
    Join Date
    Jun 2008

    Xcopy problem

    I have a batchjob that copies all the directories, sub-directories and all the files from one directory on one of my servers to another server into a backup file. There is a log file that contains a list of all the files that were copied. What I want to do now is to copy all the directories and files from a directory on a server to a new location on the same server and to have the log file get updated with a list of the copied directories and files.

    Here is a copy of the Xcopy that is working for me.

    xcopy "\\Tundra2\Workgrps\Transfer" "\\kobuk\e$\Transfer_folder_backup\Transfer" /d/e/q/c/y >>"\\kobuk\e$\Transfer_folder_backup\filesCopied.log"

    Here is a copy of the Xcopy that is not working for me.

    xcopy e:\Workgrps\Test_bkup c:\Transfer_Folder_Backup\Test_bkup /e/q/c/y "c:\Transfer_Folder_Backup\filesCopied.log"

    Thanks for any help you can offer.

  2. #2
    Join Date
    Oct 2006

    Re: Xcopy problem

    Not working in what respect?

    The last line is without >> is that a typo?

  3. #3
    Join Date
    Jan 2006
    Fox Lake, IL

    Re: Xcopy problem

    You omit the quotes? ""

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  4. #4
    Join Date
    May 2008

    Re: Xcopy problem

    Looks to me like the missing redirect is likely the problem

  5. #5
    Join Date
    Nov 2009

    Re: Xcopy problem

    I agree with WillAtwell...


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

This is a Codeguru.com survey!

HTML5 Development Center