1.

Solve : How to Use Multiple Extentions?

Answer»

Is it possible to list multiple extentions to match in a single command, or do I need to USE multiple commands in a batch FILE, && operator?  For example something like:

dir /S (*.log | *.txt)

which would list all "*.log" or "*.txt" files, or for example something like "del *log | *.txt"?Use a semicolon and a space to separate the file masks

e.g. to find all log and txt files in this and sub folders:

Code: [SELECT]dir /s *.log; *.txt
and to delete all log and txt files:

for /f "delims==" %%F in ('dir /b /s *.log; *.txt') do del "%%F"



Discussion

No Comment Found