![]() |
|
#1
|
|||
|
|||
|
Hi folks,
I need help right now. There are some subdirectories in my c:\concentrador\cupom\. I need to move files from these subdirectories into my directory c:\contas\... But i am having trouble because when i use XCOPY the subdirectories come together with these files... I just need the FILES and not the SUBDIRECTORES\the files... I tried MOVE command but it doesnt understand that i need search all subdirectories in c:\concentrador\cupom\ (it just search for files in c:\concentrador\cupom\). Best regards. |
|
#2
|
|||
|
|||
|
The quickest way is to get the list of all the files dumped into a file and iterate through the list with the copy command.
dir /A-D/S/B > MyFileList.TXT This gets all files that are not directories (A-D) in all levels of directories (/S) in bare format (/B no dates or attributes just names) and redirect the output to a file called MyFileList.TXT You can edit the MyFileLIst.TXT and replace all C:\ with a "Copy C:\" and save it as a .BAT file so you can execute it. I'm sure there is another method to read from the file as input into a copy command but my DOS is rusty. I would edit the file and save it as a .BAT then run it. PLEASE ACCEPT IF HELPFUL Rob |
|
#3
|
|||
|
|||
|
Thank you !!!
Thank you !!! Thank you !!! Thank you !!! Best regards! |
![]() |
| Thread Tools | |
| Display Modes | |
|
|