Dynamic Folder Deletion and contents moved
Posted on 2009-02-12
I have a script which is simple, but it needs to have a bit of coding to determine what actions to complete. Here's the scenario:
>>abc.bat E:\MyFiles TheNewFolder
runSomething.exe %1\%2 //this application foolishly creates a NEW subfolder
//Now exists --- E:\MyFiles\TheNewFolder\NewSubFolder1828\
The new code needs to copy the files and folders from new *name unknown* subdirectory (named NewSubFolder1828 above) up one level to the [TheNewFolder].
There is only one sub folder.
There are files in the [TheNewFolder] along with the single sub folder.
All the files and folders in the sub folder need to be moved (up one level).
RunSomething.exe basically creates a timestamp folder that is messing everything up!