when i start a command (also called DOS prompt) how can i know how many files have the word "disk" in them? What would be the commands for that? thanks.
Printable View
when i start a command (also called DOS prompt) how can i know how many files have the word "disk" in them? What would be the commands for that? thanks.
I don't think you can do it directly. It would be much easier to make a VB script to do it. However, you can generate a list of matching files with the following command:Quote:
Originally Posted by shock1
for /r [optional_path] %i in (*disk*.*) do echo %i>>filelist.txt
If you are running it from a batch file rather from a command prompt replace %i with %%i
Type in "Dir *disk*.* /s /w" This will give you a listing of all files with disk in them. CheersQuote:
Originally Posted by shock1