Solved

Copy certain file extensions from user's network share to alternate network location

Posted on 2014-03-19
2
603 Views
Last Modified: 2014-03-19
Hi Experts.  I asked this question before and got an answer but I am unable (for some reason) to use it now.  Not sure why but I've tried it a few times and I'm ready to ask for assistance.  I will be running the code from my Windows 7 workstation.

I need to copy .doc and .docx files from the user's network share (\\fileserver\user\%username%) to a central location \\fileserver2\tbd) and output what was copied in a text file (copiedfiles.log).

I am trying to use this code but it isn't copying the files.

robocopy "\\FileServer\Share" "\\FileServer2\TBD" *.doc *.docx /log:"S:\CopiedFiles.txt"

This is what I am getting in the copiedfiles.txt file:
-------------------------------------------------------------------------------
   ROBOCOPY     ::     Robust File Copy for Windows                              
-------------------------------------------------------------------------------

  Started : Wed Mar 19 11:36:51 2014

   Source : \\fileserver\users\
     Dest : \\fileserver2\TBD\

    Files : *.doc
          *.docx
          
  Options : /COPY:DAT /R:1000000 /W:30

------------------------------------------------------------------------------

                         0      \\fileserver\users\

------------------------------------------------------------------------------

               Total    Copied   Skipped  Mismatch    FAILED    Extras
    Dirs :         1         0         1         0         0         0
   Files :         0         0         0         0         0         0
   Bytes :         0         0         0         0         0         0
   Times :   0:00:00   0:00:00                       0:00:00   0:00:00

   Ended : Wed Mar 19 11:36:51 2014



Any and all help will be appreciated.
0
Comment
Question by:samiam41
2 Comments
 
LVL 78

Accepted Solution

by:
David Johnson, CD, MVP earned 500 total points
ID: 39940233
You're not recursing the subdirectories

robocopy "\\FileServer\Share" "\\FileServer2\TBD" *.doc *.docx /log:"S:\CopiedFiles.txt" /S /XO

Open in new window


/XO - Excludes older files with the same name

Do you have a Server 2008 or 2012 on the network?  It can be done by it automagically
0
 
LVL 9

Author Comment

by:samiam41
ID: 39940302
File server is a 2003 going to a new file server that's running 2008.

Thanks for your help!
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
By default the complete memory dump option is disabled in windows . If we want to enable the complete memory dump for a diagnostic purpose, we have a solution for it. here we are using the registry method to enable this.
In this Micro Tutorial viewers will learn how to use Boot Corrector from Paragon Rescue Kit Free to identify and fix the boot problems of Windows 7/8/2012R2 etc. As an example is used Windows 2012R2 which lost its active partition flag (often happen…
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now