batch file: list rar file in specific folder and write result into text file

Try like this :

@echo off
set $root=Your\root\path
dir /s /b "%$root%"\*.rar>>result.txt

Leave a Comment