switchflare Posted October 17, 2007 Report Posted October 17, 2007 I am in the process of configuring a robocopy script, but I'm having some trouble finding a method to achieve exactly what I need. My eventual goal is that I need it to parse through a directory tree and pull all folders named EXPORT and their contents, which should always JPG or BMP files. I need to move these EXPORT folders and their contents to a new directory tree while maintaining the parent folder structure and skipping other files in the parent directories. This is roughly the structure: E:\Y2007\M10\D10\FILE**\EXPORT\*.JPG Folder tree needs to be identical, but the only data files will be those contained in these EXPORT folders. My difficulty with my current script is that I can't get robocopy to skip JPG files outside of these EXPORT folders. Maybe there is some syntax that allows me to say "skip all files not contained in a folder named EXPORT"? If there is another utility/method that does this better, let me know.
plexer Posted October 18, 2007 Report Posted October 18, 2007 How about using synctoy? http://www.microsoft.com/windowsxp/using/digitalphotography/prophoto/synctoy.mspx Ben
switchflare Posted October 18, 2007 Author Report Posted October 18, 2007 I looked at using SyncToy. The problem with SyncToy is that there is no way to systematically filter out files except by including a single file type. I can manually uncheck folders to pull from, but I'm dealing with 10,000+ folders and about 100 GB of data to move. I think my silver bullet on this problem lies in the ability to pull only from folders named EXPORT, or to pull from folders only at a certain sublevel (leaving upper levels alone).
mattx Posted October 18, 2007 Report Posted October 18, 2007 Xcopy ? Filter files by date possibly ? You can use the touch command [ Part of a resource pack I think ] - I did something similar [ with a Xcopy command ] to backup a media database which is now running Rsync from two freenas boxes ] http://www.codeproject.com/tools/touch_win.asp I do have a GUI prog which does a touch type command - let me know if you want it - [ it was free I think if memory serves me right ]
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