Solved

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

Posted on 2014-03-19
2
616 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 81

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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
system default settings 4 54
Outlook 2016 processing loop 4 52
Show File Modified Date including seconds 7 83
Dell Latitude E6420 no sound 13 25
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
A quick guide on how to use Group Policy to create a custom power plan and set it active on Windows 7.
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

752 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