• Notice regarding image hosts and attachments. See here.

DELETED_5350

Download xxcopy and use the /sg switch

Ignore. Didnt read the extract bit, as in compressed.
 
Last edited:
I don't think he wants to 'extract', per se. He wants to move files from a subdirectory, to their parent directory.

Wrong choice of words, methinks.
 
It's the
"extract every file under every folder in a certain directory and move them"
which makes me think he has some compressed folders to work on. Then the comment about the zip files code.

Nice code for moving the files though.
 
My bad, I screwed it up.

Code:
dir G:\Usenet\Complete /A:D /O:N /B > list.lst

for /f %%i in (list.lst) do move /y G:\Usenet\Complete\%%i\*.* Usenet

If you run this from G: it'll move all files from the subdirections in G:\usenet\complete\ to G:\Usenet
 
I've seen for loops have some odd results sometimes unless you use brackets. So for your example it would be:

Code:
dir G:\Usenet\Complete /A:D /O:N /B > list.lst

for /f %%i in (list.lst) do (
move /y G:\Usenet\Complete\%%i\*.* Usenet
)
 
Back
Top Bottom