Answer the question
In order to leave comments, you need to log in
How to get a list of all files in a folder and copy it to TXT?
Hello. There are two local folders, for example
C:\Users\Adm\Documents\folders\folder_name_1
C:\Users\Adm\Documents\folders\folder_name_2
They contain files (*.html mask)
How to get this list of files in TXT?
Ie just a list of files on a new line (links to files - full path)
Thank you!
Answer the question
In order to leave comments, you need to log in
Alternatively, you can create a .bat file and paste the following code:
@ECHO OFF
FOR %%f IN (%1*.html) DO ECHO %%f >> list.txt
For reference, in Total there is a cm_CopyNamesToClip command for copying file names, it can be hung up in the settings on the F11 key, for example
* Check if there are already assigned keys with such a command
** Select keys
*** Select the Commander's internal command from the list
*** * [REQUIRED] Add it to the config (at that moment the button looks like a bright green checkmark)
But for the full automation of the task, the answers of other experts are better suited
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question