Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Finding a file using a BAT file?
Name: WeedHead Date: December 15, 2000 at 17:09:39 Pacific
Comment:
Ok here is what i want to do. I want to start a bat file and have it search the current directory for any SFV files. If it finds them i want it to execute D:\SFVcheck
Name: WeedHead Date: December 15, 2000 at 17:11:23 Pacific
Reply:
I mean it needs to execute D:\SFVCheck.exe [THeFileIFound]
0
Response Number 2
Name: World Library Date: December 15, 2000 at 19:05:33 Pacific
Reply:
The below is off the top of my head. Not to familiar with sfv as it proves to unreliable. (sorry)
Use the if exist statement. Be sure to alow if a sfv file is not found.
cls @echo off if exist c:\*.sfv goto check :: above checks c goto next :check d: :check-d sfv.exe goto end :next if exist d:*.sfv goto check-d goto ? next drive to be searched
0
Response Number 3
Name: ¤¤¥¤Ö Date: December 16, 2000 at 04:12:58 Pacific
Reply:
Since you only want to search the current directory, you should not include an absolute path. I would try something like this:
Summary: Hello. My problem is exact like the problem "making a .bat file to get input" in DOS\Page 1... BUT it is in NT 4.0. Like the answer from Secret_doom....but like he sayes, "There are other methods to g...