Guest User

Untitled

a guest
Jul 21st, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. set text = Hello world
  2.  
  3. @ECHO OFF
  4.  
  5. ::Edit string one with 30 char limit. String has 40 Chars.
  6. SET String=0123456789012345678901234567890123456789
  7. SET Result=%String:~0,30%
  8. ECHO %Result%...
  9.  
  10. ::Edit string one with 30 char limit. String has 90 Chars.
  11. SET String=012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
  12. SET Result=%String:~0,30%
  13. ECHO %Result%...
  14.  
  15. ::Edit string one with 30 char limit. String has 6 Chars.
  16. SET String=0123456
  17. SET Result=%String:~0,30%
  18. ECHO %Result%...
  19.  
  20. PAUSE
  21. GOTO :EOF
Add Comment
Please, Sign In to add comment