1.

Solve : serch comand?

Answer»

is there a peice of code that will serch the whole drive for a cirtain file type (such as my own created one .steven)DIR /s /b /a-d *.stephenYou could ALSO add a

Code: [Select]set /p variable=
So then you can choose what file you want to search for .

So it would look like this

Code: [Select]@echo off
:start
cls
set /p variable=
dir /s /b /a-d "%variable%"
pause>nul
goto start

I just add everything else in even though you know about that.





so the file would be made the variable thats on the code
Quote from: DIAS de verano on January 03, 2009, 01:21:00 PM

dir /s /b /a-d *.stephen

Quote from: steven32collins on January 04, 2009, 12:49:02 AM
so the file would be made the variable thats on the code


If you use the code from Dios (see above quote) you have no need for a variable. It will DISPLAY any files with .stephen in their names.Quote from: Helpmeh on January 05, 2009, 03:24:35 PM
If you use the code from Dios

Thanks for the promotion!



for /r c:\ %%a in (*.txt) do echo %%a


Discussion

No Comment Found