I have the following code in a command line batch file that I would like to convert to a web application search box. Then display results in a new tab when clicking submit. Everything I've found for search boxes either searches google, searches text on screen, or require creating a database instead of searching for text within various "log" text files.
I'm curious which language would be the best for converting this code to a web search box? Would anyone be able to provide examples in maybe javascript, php, perl, or other language?
Thanks,
set webServerPath=
echo -- Name --
set /p Name=": "
findstr /r /i "%Name%" %webServerPath%\CopiedMovedFiles\ *.txt>%webServerPath%\Found.txt
findstr /r /i "%Name%" %webServerPath%\TarPackages\ *.txt>>%webServerPath%\Found.txt
findstr /r /i "%Name%" %webServerPath%\TaskErrors\ *.txt>>%webServerPath%\Found.txt
Start notepad.exe %webServerPath%\Found.txt
pause
Aucun commentaire:
Enregistrer un commentaire