Guest User

Untitled

a guest
Oct 25th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. [DATABASE]
  2. DBName = exampleframe
  3. //DBName =.SQLEXPRESS@exampleFRAME // used by MSSQL
  4. DBUser = exampleuser
  5. DBPassword = examplepw
  6.  
  7. FOR /F "delims=:" %%a in (%TaskMonitorConfigFile%) DO (
  8.  
  9. set string=%%a
  10. echo %string%|find "[DATABASE]" >nul
  11. if errorlevel 1 (echo notfound) else (echo found)
  12. if "!string:~0,6!"=="DBName" set DBName=!string:~9!
  13. if "!string:~0,6!"=="DBUser" set DBUser=!string:~9!
  14. if "!string:~0,10!"=="DBPassword" set DBPassword=!string:~13!
  15. break
  16. )
Add Comment
Please, Sign In to add comment