user3124184
user3124184

Reputation: 31

Using wildcard characters in Windows command prompt

I was wondering if it is possible to use wildcard characters in Windows Command Prompt. For example, if I want to see all files in a directory ending with .docx, on Linux I would type this ls *.docx. Is there a similar tool in Windows? Thanks

Upvotes: 3

Views: 42716

Answers (1)

gaurav5430
gaurav5430

Reputation: 13892

yes you can.

e.g.

The asterisk character, *, can stand in for any number of characters. Some examples of this command:

c:\>del *.doc

This command would delete every file with the doc extension from the root directory of C: . So files like myfile.doc, testfile.doc, and 123.doc would all be deleted.

refer to this link:

http://www.ahuka.com/?page_id=31

Upvotes: 4

Related Questions