+ Post New Thread
Results 1 to 4 of 4
Windows Thread, Copy or move files by extension in Technical; All our teachers use 1 account, and so share a My Documents folder. Works well enough. However, the teachers are ...
  1. #1
    rocknrollstar's Avatar
    Join Date
    Jun 2008
    Location
    Hampshire
    Posts
    435
    Thank Post
    387
    Thanked 28 Times in 24 Posts
    Rep Power
    21

    Copy or move files by extension

    All our teachers use 1 account, and so share a My Documents folder. Works well enough. However, the teachers are putting lots of video in this folder, which is eating up space. There are easily hundreds of videos, so a manual job would drive me insane.

    I would like to have a separate mapped drive which will contain only media. What I need to do is move across the existing videos onto the new directory (mapped drive).

    I need a script/program which will only copy avi or mpgs, remove it from the orginal source, and create the same directory tree in the new directory. That way staff will be able to find the videos easily. The new directory should basically be a subset of the original, but the directories will only contain video files.

    Any thoughts? I've looked at this post already. Karen's replicator doesn't seem to be able to remove the files from the source. Robocopy (GUI) doesn't let you only include certain file extensions- it allows you to exclude certain file extensions, the wrong way round for me.

    Any help would be much appreciated. Thanks very much in advance.

  2. #2

    Join Date
    Oct 2005
    Location
    Hampshire
    Posts
    24
    Thank Post
    0
    Thanked 6 Times in 6 Posts
    Rep Power
    20
    If you run robocopy from a DOS box it will give you all the parameter options that it can take. It will then let you do what you want..

    ROBOCOPY /?

    You will want something like -

    ROBOCOPY sourcedir destdir *.avi /mov

    This will move only avi files.

  3. Thanks to R.M.B from:

    rocknrollstar (31st July 2009)

  4. #3
    rocknrollstar's Avatar
    Join Date
    Jun 2008
    Location
    Hampshire
    Posts
    435
    Thank Post
    387
    Thanked 28 Times in 24 Posts
    Rep Power
    21
    Thanks for your help. With your help, found out that something like this will work:

    ROBOCOPY SRC DEST *.avi *.mpg /move /MIR /R:0 /S

    Some params may be overkill, but it does work with a simply test I've carried out.

    Thanks again!

  5. #4
    mdench's Avatar
    Join Date
    Oct 2011
    Location
    Billingshurst
    Posts
    810
    Thank Post
    40
    Thanked 104 Times in 94 Posts
    Rep Power
    39
    you should be able to set the robocopy script to run as a scheduled task so it will either run every day at say 1am or every other day or every week depending on how frequently they store videos.



SHARE:
+ Post New Thread

Similar Threads

  1. Software to copy files by extension
    By cookie_monster in forum Windows
    Replies: 6
    Last Post: 29th June 2009, 01:57 PM
  2. Move or copy a large directory tree
    By leco in forum How do you do....it?
    Replies: 7
    Last Post: 13th April 2009, 02:40 PM
  3. How to copy files from two domains
    By timbo343 in forum Scripts
    Replies: 5
    Last Post: 18th February 2008, 10:43 PM
  4. Failed to copy files from CD
    By Dos_Box in forum Learning Network Manager
    Replies: 13
    Last Post: 12th April 2007, 11:42 AM
  5. Replies: 15
    Last Post: 15th February 2006, 10:22 AM

Thread Information

Users Browsing this Thread

There are currently 2 users browsing this thread. (0 members and 2 guests)

Posting Permissions

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