Help with batch code- need help!
Posted: 12 Oct 2011 00:11
Hi,
I am having trouble with the "find" command. I need it to ask for an input, and then the program searches for the input in a text document.
Here is the code:
Could someone please post a resolution?
Regards,
Rileyh
I am having trouble with the "find" command. I need it to ask for an input, and then the program searches for the input in a text document.
Here is the code:
Code: Select all
set /p b=Input:
find /C /I "%b%" %dir%\test\%user%\%userconfig.txt
if %errorlevel% 0 (goto :pass)
Could someone please post a resolution?
Regards,
Rileyh