|
Answer» I've got a directory with sub directories like this: --1001 --1001 -----Bunches of files and dirs --1002 --1002 -----Bunches of files and dirs I want to MOVE the contents of sub-directory 1002 up one level, then delete the 1002 sub-directory folder.
Here's what I'm trying to do (pseudo code)
for each %VAR% in (or a text file with these dir's listed){ xcopy %var\%var %var /s /E del %var/%var/* }
This is the COMMAND that works: xcopy 7614\7614 7614 /s /ce The delete didn't work.
Your help is much appreciated.
Jake BTry using:
del /q %var%\%var% rd /q %var%\%var%
Or better YET (delede the whole folder and content together): rd /q /s %var%\%var%
Good luckThanks!
|