Welcome Guest.   Make a donation to an author on the site August 28, 2014, 12:14:31 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
The N.A.N.Y. Challenge 2012! Download dozens of custom programs!
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: Level - Copy files from various sources into one flat folder  (Read 10975 times)
justice
Supporting Member
**
Posts: 1,888



Solve issues simply.

View Profile WWW Give some DonationCredits to this forum member
« on: May 02, 2007, 10:01:04 AM »

Levelcopies files from multiple sources into a flat folder. It can be invoked from the commandline. For every source you can specify a file filter, and currently therre are switches to include/exclude subfolders, whether or not you want to overwrite all files that already exist or only older ones. You can have unlimited sources (afaik) When you start it from explorer you see this:

I can imagine that it would be handy to use to consolidate all your music from different pcs into one folder.

It requires cat.exe from UnxUtils because AutoHotkey doesn't allow you to send the output directly to the commandline. So if you want any output then put |cat at the end of a command. Instead you can also pipe it to a textfile.



for example:
[copy or print]
level -oo -s c:\temp\1\*.* c:\temp\2\*.* d:\temp\output |cat
This would copy all never files from 2 sources on the c-drive into one destination folder in the d-drive, including subdirectories. However the output folder won't have any subdirectories (it's flat -- so if you have duplicate files, the newest version is always available)

Feel free to use it in any way or if you have suggestions they are welcome too.

Download Page
« Last Edit: March 05, 2009, 10:32:44 AM by justice » Logged

PlayPhil
Supporting Member
**
Posts: 24


View Profile Give some DonationCredits to this forum member
« Reply #1 on: May 12, 2007, 06:39:58 AM »

Very nice util Justice. Ran a simple test, works as advertised, can't beat that smiley

Thanks for the heads-up on the Unix/Win32 utils. Couldn't download from the site mentioned but Google quickly found a mirror in Germany where I could (seems to happen from time to time).

I'm thinking of writing a similar routine that would parse a tree & copy (or move) image files of a size, say 1024x768 into a flat folder, perhaps putting dups (1 of, in the case of several) in a subfolder in the case of moving.

Thanks for the outline  Thmbsup
Logged

Phil
xcopy
Charter Member
***
Posts: 74


View Profile Give some DonationCredits to this forum member
« Reply #2 on: June 07, 2009, 11:53:37 PM »

This thread might be 2 years old but let me say anyway: level rocks!  Thmbsup Thmbsup Thmbsup
Thanks a lot justice!
Logged
justice
Supporting Member
**
Posts: 1,888



Solve issues simply.

View Profile WWW Give some DonationCredits to this forum member
« Reply #3 on: June 08, 2009, 05:20:47 AM »

Thanks xcopy much appreciated smiley I still read it haha smiley Maybe it's interesting to show how I use it:
At work I use a slightly different version (with progressbar and visual display of the last copied image) to copy a bunch of staff/student images from many different folders into the one folder so that they can be easily referenced from webpages. Ah it seems I said that in the babble.
Logged

justice
Supporting Member
**
Posts: 1,888



Solve issues simply.

View Profile WWW Give some DonationCredits to this forum member
« Reply #4 on: February 16, 2012, 02:43:08 AM »

If you want to play with the latest source, you can now fork from Bitbucket:
https://bitbucket.org/svandragt/level

I'll keep posting executable releases in this topic when they're available.
Logged

Hacnstein
Supporting Member
**
Posts: 4

View Profile Give some DonationCredits to this forum member
« Reply #5 on: April 05, 2012, 09:10:22 PM »

there is a tool out there called levelzap from http://levelzap.codeplex.com/
Logged
IainB
Supporting Member
**
Posts: 4,626


Slartibartfarst

see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #6 on: April 06, 2012, 08:39:27 AM »

I am a bit of a novice in this, and I might misunderstand what's required here, but after reading this discussion thread, I just now sat down with xplorer² to see whether I could meet the apparent requirements, and:
Quote
1. Created a Junction folder (Reparse point).
2. Created a scrap pane (a sort of virtual folder).
3. Selected several folders and flattened them and their contents into the scrap pane, creating a flat file (you could save this for future use as a reusable CIDA file - a particularly useful/powerful feature in xplorer²).
4. Copied all files in the scrap pane.
5. Pasted them into the Junction folder (I think this this effectively creates a "Library" containing pointers to all the files pasted).
This reproduced the flat file structure in the Junction folder.
The above steps should apply for Win XP and Win7-64bit Home Premium.

I then:
Quote
1. Created a new Library in Windows Explorer.
- then performed steps 2, 3, 4 above in xplorer².
5. Using Windows Explorer, pasted them into the Library folder (I think this effectively creates a "Library" containing pointers to all the files pasted).
This reproduced the flat file structure in the Library.
The above steps should apply for Win7-64bit Home Premium.

I could be wrong, of course, but I think this means that:
(a) You could then access the Reparse point folder or Win7 Library as your central (consolidated) server "directory".
(b) This directory would reflect realtime any changes to the source folders/files included in the flattened file.
(c) You do not need to copy any actual files anywhere to create the central (consolidated) server "directory".

The main constraints here I think would be:
  • You can only do this in NTFS formatted file systems/drives.
  • The Reparse points can not be created to work across a network, so you would need to have it all on a single server with directly attached drives - and of course, the web site will be able to access the central (consolidated) server "directory". I am unsure whether this constraint applies to Win7 "Libraries", but I would expect it probably does.

I have been experimenting using this approach to create a structured (not a flat file) central (consolidated) "directory" to hold all of the target folders to go into my FreeFileSync backup. This is instead of the conventional and rather tedious approach of individually specifying in FFS which target folders to back up. So FFS would just back up whatever was in the central (consolidated) "directory", and I could change the contents of that directory to manage backups of changes to the range of backup target files/folders.

Caveat:
  • Mucking about with Junction folders (Reparse points) could be risky if you are not careful with your file-naming (I always include the word "Junction" in a Reparse point folder name).
  • Anything you do to a logical folder or file in a Junction folder directly affects the actual folder or file on disk.

Hope this all makes sense and is of use/help to someone.     smiley
Logged
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.039s | Server load: 0.15 ]