Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2014-03-19
2
Medium Priority
?
623 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 84

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

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

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

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…
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
This Micro Tutorial will teach you the basics of configuring your computer to improve its speed. It will also teach you how to disable programs that are running in the background simultaneously. This will be demonstrated using Windows 7 operating…
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.
Suggested Courses
Course of the Month11 days, 15 hours left to enroll

916 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