rocknrollstar Posted July 31, 2009 Posted July 31, 2009 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.
R.M.B Posted July 31, 2009 Posted July 31, 2009 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. 1
rocknrollstar Posted July 31, 2009 Author Posted July 31, 2009 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!
mdench Posted December 27, 2012 Posted December 27, 2012 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.
badspell68 Posted April 29, 2015 Posted April 29, 2015 This may solve your problem... I got so tired of trying to copy files by extensions with command line inputs that I wrote a tool to copy any file, from any location or from any nested folder structure to the location of my choice. Here is what I did: Copy-By-Extension | "Automatically & Easily Copy or Move Files" Regardless of Location or Folder Structure!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now