Batch move files up one directory for multiple directories
Posted: 02 Jun 2011 18:50
I am trying to figure out a way to batch move files from inside a directory up a single directory.
Not sure if I can put what I want to do in words. See in the example below, I have many directories that are like the "1st" and "3rd" directories below. They each have one directory inside of them with files. I would like to batch move all of the files from the directory inside of them and place them in the directory directly above them. Basically the files in the 2nd directory into the 1st directory, the files in the 4th directory into the 3rd directory, etc...
Example:
Root dir
1st dir
2nd dir (files are in this directory)
3rd dir
4th dir (files are in this directory)
...
Not sure if this is possilbe, but any help would be greatly appreciated. I have been having a hard time using google for this one!
JP
Not sure if I can put what I want to do in words. See in the example below, I have many directories that are like the "1st" and "3rd" directories below. They each have one directory inside of them with files. I would like to batch move all of the files from the directory inside of them and place them in the directory directly above them. Basically the files in the 2nd directory into the 1st directory, the files in the 4th directory into the 3rd directory, etc...
Example:
Root dir
1st dir
2nd dir (files are in this directory)
3rd dir
4th dir (files are in this directory)
...
Not sure if this is possilbe, but any help would be greatly appreciated. I have been having a hard time using google for this one!
JP