Help me, if you can…

October 27th, 2013

Dear friends,
I have, on a hard disk, hundreds of folders (A), each of which contains from 3 to 150 folders (B).
It’s possible, with one command (I think dos) or a well know program, remove folders (B) and bring them together with (A) which would, of course, empty?
If the folder to remove already exist, will simply remain in the original folder.
I looked in your site, and I found nothing similar.
Can you do something?
Thank you in advance and I send you cordial greetings
Ps. English is not my mother tongue, so… sorry…

Answer #1
Go to the folder, Open a Dos Command prompt and Type del /?
It will show a list of command line switches.
Following deletes all files *.* in all sub directories.
Del /S *.*
There used to be a dos command called deltree that also deleted all sub directories.
Answer #2
Answer #3
TexKiller replied: I have, on a hard disk, hundreds of folders (A), each of which contains from 3 to 150 folders (B).
It's possible, with one command (I think dos) or a well know program, remove folders (B) and bring them together with (A) which would, of course, empty?
If the folder to remove already exist, will simply remain in the original folder.

Your not making any sense all this A and B stuff.
What do you mean by “bring them together with A”?
I assume you have a lot of folders with files inside them, and you want all the files in one folder?
If that is the case you can just search for *.* in windows, select all, and move to one folder.
Other than that, no idea what your trying to do.
Answer #4
i think he is trying to say that he has like a hundred folders. lets just name them a,b,c,d,e,f,…… etc
inside each of those folders (i.e. inside c) there are more folders.
then he wants to move the folders inside c and bring them into the root directory. with the other hundred folders.
if the folder from c already exists in the root directory then it would not be moved c.
as for the answer to to texkillers problem. i know that it possible to do this with dos.
unfortunately i havent learnt how to do this in dos.
maybe someone else can help.
Answer #5
Thanks alot for reply….
I think I’ve used a wrong words in my question: REMOVE instead of MOVE and A/B instead of LEVELS
I have, on a hard disk, hundreds of folders (Level A), each of which contains from 3 to 150 folders (Level B).
It’s possible, with one command (I think dos) or a well know program, MOVE folders from level B and bring them together with othe folders in level A?
If the folder to MOVE from level B already exist in level A, will simply remain in the original level.
Thank you in advance and I send you cordial greetings
Tex
Answer #6
There is no single command, and probably no syntax, that would merge all the sub folders into the root folder, deleting the original sub-folders, and not replace any duplicates.
(if that is the correct interpretation of what you want to do)
However, one could create a batch file easily enough to accomplish this task using BASIC programing language.
Perhaps if you posted this in the Programing Forum someone would be willing to take the time and do that for you.

 

| Sitemap |