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

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -