Reputation: 31
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
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