Jump to content

Recommended Posts

Posted

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.

Posted

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.

  • Thanks 1
Posted

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!

  • 3 years later...
Posted
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.
  • 2 years later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...