1.

Solve : find command in batch file?

Answer»

I am trying to execute find command in batch MODE. The command that i gave is
find %1% %2% in a file called file4.bat and INVOKED it with file4.bat file1.bat file4.bat. I get the error
"Find Parameter format not correct"
COULD you please let me know the error.

Thank you,
s.subhafind "search item"
is the correct syntax

uliI invoked it with file4.bat "file1.bat" file1.bat. I get the same error.Quote

I invoked it with file4.bat "file1.bat" file1.bat. I get the same error.


what are you trying to find actually? if you are finding patterns inside a file, use findstr instead.You might try changing the FIND command in file4.bat to:

Code: [Select]
find "%1" %2


Not SURE what you're trying to do, but as written, your code will run file4.bat and search for the string file1.bat within file4.bat.

Too surreal for me. :-/


Discussion

No Comment Found