General Question

ragingloli's avatar

Searching for file management tool?

Asked by ragingloli (52231points) May 21st, 2009

Folder A contains Folder B and Folder B containes files.
I am looking for a program that will automatically move all contents of folder B to Folder A if Folder B is the only thing inside Folder A (that means, no other folders or files).
It would also be nice if the program then deletes the folder B.

Please make suggestions.

Observing members: 0 Composing members: 0

8 Answers

jrpowell's avatar

Windows, OS X, or Linux?

DarkScribe's avatar

Why can’t you simply drag and drop the files from B to A? It would only take a second or so. I assume that as you are referring to folders, not directories, that you have a Mac. You can write a script to do this if it is a repetitive thing. Have you looked at “Automator” workflow actions on Mac folders?

ragingloli's avatar

i use windows. and i have hundreds of folders to process. so doing it by hand is out of the question for me

DarkScribe's avatar

Are you familiar with VB?

ragingloli's avatar

i had some vb5 a couple of years ago

DarkScribe's avatar

That might be your best answer then. What are the files and what criteria triggers the need to relocate them?

DarkScribe's avatar

I have to go. The reason I asked the last question is that I was considering the possibility of tricking an automated backup program into handling your problem.

cwilbur's avatar

On Linux or Mac, I’d write a Perl script to do this. (Or, if I was feeling like I needed a challenge, I’d try to use find(1) to do it without any other scripting.) In theory, Windows Power Shell is supposed to offer actual programming power, or you could try using Visual Basic or Perl yourself.

Answer this question

Login

or

Join

to answer.

This question is in the General Section. Responses must be helpful and on-topic.

Your answer will be saved while you login or join.

Have a question? Ask Fluther!

What do you know more about?
or
Knowledge Networking @ Fluther