Z
Z
zilhome2015-03-10 16:56:38
cmd/bat
zilhome, 2015-03-10 16:56:38

Who knows the BAT-nickname for extracting files from all subdirectories to the root?

In the main directory there are a lot of folders, in folders there are more folders. Each of them contains files. It is necessary that all files are extracted to the main directory, and all these unnecessary folders are deleted. At the moment I do it manually by searching for *.* and then I select everything and transfer it to the main folder.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
TomasHuk, 2015-03-10
@TomasHuk

You can also press Ctrl + B in Total Commander and only files will be displayed, without folders.

3
386DX, 2015-03-10
@386DX

for /r %i in (*) do @move "%i" .
superuser.com/questions/85921/get-rid-of-subfolder...
then you need to delete the folders, I don't know exactly how, via rmdir

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question