Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2014-03-19
2
Medium Priority
?
620 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 83

Accepted Solution

by:
David Johnson, CD, MVP earned 2000 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

Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

Question has a verified solution.

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

Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
IF you are either unfamiliar with rootkits, or want to know more about them, read on ....
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…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

721 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