Advertisement
Guest User

Untitled

a guest
Sep 30th, 2016
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. @echo off
  2.  
  3. goto findstring
  4.  
  5. :stringnotfound
  6.  
  7. echo %string% not found in %location%
  8.  
  9. pause >nul
  10.  
  11. :findstring
  12.  
  13. set /p string=string:
  14.  
  15. set /p location=location:
  16.  
  17. findstr /i /p /m /s "%string%" %location%
  18.  
  19. if %errorlevel% == 1 goto stringnotfound
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement