batch file: list rar file in specific folder and write result into text file -
i have folder , contains rar files , subfolders. these subfolders contain rar file or subfolder (recursive structure). want write batch file list rar files in folder tree (full path). result written text file.
example:
specific folder:
--quest --quest--1.rar --quest--2.rar --quest--sub--3.rar --quest--con--4.rar --quest--math--ams.doc
and result after running batch file in result.txt:
--\quest\1.rar --\quest\2.rar --\quest\sub\3.rar --\quest\con\4.rar
try :
@echo off set $root=your\root\path dir /s /b "%$root%"\*.rar>>result.txt
Comments
Post a Comment