Answer the question
In order to leave comments, you need to log in
How to write the names of folders in a specified directory to a file?
Good evening! I ask for help in writing a bat program to extract the names of folders and nested subfolders into a text file (list).
There is a bat script
chcp 1251
@echo off
(for /f delims^= %%i in ('dir /b /s /a-d') do (
set "file=%%i"
call echo %%file:%cd%=%%
)) > list.txt
\2)REPAIR OF APARTMENTS AND PRIVATE HOUSES\VIP-REPAIR\b1 (5).JPG
\2)REPAIR OF APARTMENTS AND PRIVATE HOUSES\VIP-REPAIR\b1 (7).JPG
\2)REPAIR OF APARTMENTS AND PRIVATE HOUSES\BALCONIES\170620092502 .jpg
\2)REPAIR OF APARTMENTS AND PRIVATE HOUSES\BALCONIES\20141003_065259.jpg
\2)REPAIR OF APARTMENTS AND PRIVATE HOUSES\BALCONIES\20141003_065304.jpg
\2)REPAIR OF APARTMENTS AND PRIVATE HOUSES\BALCONIES\20141003_065316.jpg
РЕМОНТ КВАРТИР И ЧАСТНЫХ ДОМОВ
VIP- РЕМОНТ
БАЛКОНЫ
СТРОИТЕЛЬСТВО ДОМОВ
ДЕРЕВЯННЫЕ
КИРПИЧНЫЕ
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question