PDA

View Full Version : Searching from a batch file


sparrow91
07-20-2006, 03:30 AM
Im trying to create a batch file that will search for and replace a certain text file on my system. What comand would I use to search for a text file that I do not know the location of, and then how would I get that into an edit command?

Dies edit even work in batch files?

Roelf
07-20-2006, 09:08 AM
for /F %a in ('dir cmd.exe /S/B') do edit %a

searches for file cmd.exe and then opens it in program: edit.com