Home » Questions » Computers [ Ask a new question ]

How do use wildcards in command prompt?

How do use wildcards in command prompt?

This page on Command Line Syntax says I can use something like *.txt to search for a file.

Asked by: Guest | Views: 250
Total answers/comments: 1
bert [Entry]

"This will find all files with a txt extension (in the current folder):

dir *.txt

This will find all files with a txt extension including sub-directories (so you could run this command from a parent folder):

dir /s *.txt"