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 ...
31st July 2009, 02:11 AM #1
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.
31st July 2009, 11:04 AM #2
- Rep Power
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..
You will want something like -
ROBOCOPY sourcedir destdir *.avi /mov
This will move only avi files.
Thanks to R.M.B from:
rocknrollstar (31st July 2009)
31st July 2009, 01:58 PM #3
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.
27th December 2012, 06:55 AM #4
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.
By cookie_monster in forum Windows
Last Post: 29th June 2009, 01:57 PM
By leco in forum How do you do....it?
Last Post: 13th April 2009, 02:40 PM
By timbo343 in forum Scripts
Last Post: 18th February 2008, 10:43 PM
By Dos_Box in forum Learning Network Manager
Last Post: 12th April 2007, 11:42 AM
By tarquel in forum Windows
Last Post: 15th February 2006, 10:22 AM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)