Advertisement
9Splay_Larry

findexe.bat

Oct 5th, 2020
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.24 KB | None | 0 0
  1. @echo off
  2. setlocal enabledelayedexpansion
  3. set /a n=0
  4. set /a n1=0
  5. for %%i in (%*) do (set /a n+=1)
  6. @echo {"data":[
  7. for %%a in (%*) do (
  8. set /a n1+=1
  9. @echo {"{#SERVERNAME}":"%%a"
  10. if !n1! neq !n! (
  11. @echo },
  12. ) else (
  13. @echo }
  14. )
  15.  
  16. )
  17. echo ]}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement