1.

Solve : Batch Search File?

Answer»

How can i posible make a batch file that can search for a file and run it?
The batch file will search for a file, and then run it.
example.
I want to search for the file "game.exe".
It will also search for "funny_game.exe" as it is case sensitive.
THX.Yes, you can do that. Can I ask why? You can do that easily in windows search. QUOTE from: Geek-9pm on February 07, 2010, 12:21:29 AM

You can do that easily in windows search.

I will try it then.

(it is not a batch,thx for your reply) Quote from: rem_bc on February 07, 2010, 12:14:58 AM
I want to search for the file "game.exe".
It will also search for "funny_game.exe" as it is case sensitive.


C:\batch>type   bcrem.bat

Code: [Select]echo off

cd \

dir /s  game.exe

dir /s  funny_game.exe

REM  GOOGLE [ game.exe ] game.exe might be a virus

Outout:

C:\batch> bcrem.bat
 Volume in drive C has no label.
 Volume Serial Number is F4A3-D6B3

 DIRECTORY of C:\WINDOWS\system32

02/07/2010  10:05 AM                 5 game.exe
               1 File(s)              5 bytes

     TOTAL Files Listed:
               1 File(s)              5 bytes
               0 Dir(s)  300,691,238,912 bytes free
 Volume in drive C has no label.
 Volume Serial Number is F4A3-D6B3

C:\>


Discussion

No Comment Found