P
P
pkring2019-08-14 11:58:29
cmd/bat
pkring, 2019-08-14 11:58:29

How to run command in subdirectories using bat file?

5d53cca11b9cd296847148.jpeg
There is a batch file that should go through all the folders (folder names are always different) that are in the same directory with it, and in each folder call the command "html-to-text < index.html | html-to-text > index .txt".

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Tsvetkov, 2019-08-14
@tsklab

FOR /R %%F in (*.*) do ECHO %%F

go to the folder and call the command
@FOR /R %%i IN (*index.html) DO ( CD %%~pi 
html-to-text < index.html | html-to-text > index.txt )

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question