Try like this :
@echo off
set $root=Your\root\path
dir /s /b "%$root%"\*.rar>>result.txt
More Related Contents:
- Batch files: How to read a file?
- Combining multiple text files into one
- Batch: Remove file extension
- Script to associate an extension to a program
- Check if any type of files exist in a directory using BATCH script
- Batch file to delete first 3 lines of a text file
- How do I find the current directory of a batch file, and then use it for the path?
- Keep CMD open after BAT file executes
- In MATLAB, can I have a script and a function definition in the same file?
- Find file name from full file path
- Find duplicate lines in a file and count how many time each line was duplicated?
- Get file version in PowerShell
- How to read/write from/to a file using Go
- Run .jar from batch-file
- for IE gives full path, need file name only
- JVM property -Dfile.encoding=UTF8 or UTF-8?
- Force download of ‘data:text/plain’ URL
- Write variable to a file in Ansible
- How to move/rename a file using an Ansible task on a remote system
- Printing the last column of a line in a file
- Log4Net config in external file does not work
- Parse a log4j log file
- What are the pros and cons of parquet format compared to other formats?
- Haskell file reading
- How to create a custom magic file database
- Windows 2008 R2 – Kernel (System Process PID=4) is locking files and folders
- How can I redirect stdout into a file in tcl
- CMake: reuse object files built for a lib into another lib target
- What is a sparse file and why do we need it?
- Deny access to specific file types in specific directory