PDA

View Full Version : File management system



DeSade
03-10-2007, 07:34 AM
I am looking for software that will allow me to take 500+ folders with 1 file in each and merge them into one folder with 500+ files without having to open each folder one by one and dragging its file into the main directory.

Can anyone recommend a software system for this?
Preferably free.

Digby
03-10-2007, 07:41 AM
wow what a problem.

Sorry no ideas at all !

Erayd
03-10-2007, 07:57 AM
This should take care of it for you:
ls -a | while read d; do mv $d/* ./; mv $d/.* ./; rmdir $d; done

DeSade
03-10-2007, 08:35 AM
Sorry Bletch, I am not really sure what that is

Cho
03-10-2007, 08:44 AM
thats a linux command, so if ya using linux it will work. if using windows, then might have to do it manually.

Erayd
03-10-2007, 08:59 AM
Sorry Bletch, I am not really sure what that isUm. Sorry, for some reason I thought Myth had posted the original question - hence the Linux command. If you're using Windows, Cygwin/bash should be able to run that - otherwise I have no idea sorry.

DeSade
03-10-2007, 08:59 AM
I don't use Linux.
Any other options?

DeSade
03-10-2007, 09:00 AM
Cygwin/bash

What or where is this?

Erayd
03-10-2007, 09:05 AM
It can be found here (http://www.cygwin.com/). It's a basic POSIX environment for windows, the base includes bash and a whole pile of useful tools. You don't need to compile anything for what you are trying to achieve - the installer should take care of it all for you. Don't bother installing X.

DeSade
03-10-2007, 09:18 AM
Thanks Bletch

jwil1
03-10-2007, 09:28 AM
Simpley run a Windows XP/Vista search for *.* (any file with any extension) and select all files that were within the original folders and copy to a new directory. Delete the old folder set and copy the files to the one folder! Simple as that!

Erayd
03-10-2007, 09:33 AM
Simply run a Windows XP/Vista search for *.* (any file with any extension) and select all files that were within the original folders and copy to a new directory. Delete the old folder set and copy the files to the one folder! Simple as that!Good point - as someone who turns to the command-line first (usually because it's faster) I don't always think of the GUI tools...

DeSade
03-10-2007, 11:58 AM
There are quite a few download options after you click the link which ones do I choose?

Erayd
03-10-2007, 12:17 PM
You want this (http://www.cygwin.com/setup.exe) one, although jwil1's suggestion will be easier...

DeSade
03-10-2007, 12:44 PM
Thanks jwil1 that worked a treat
thanks for your help also Bletch