Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- set string=%2
- set /a takeaway=5
- for /f "usebackq tokens=*" %%a in ('%string%') do (
- if %string% equ %%~a (
- set /a takeaway=3
- )
- set string=%%~a
- )
- echo %2 > %TEMP%\tempfile.txt
- for %%g in ( %TEMP%\tempfile.txt ) do (
- set /a %1_lenght=%%~zg - %takeaway%
- )
- del %TEMP%\tempfile.txt
- set %1=%string%
Add Comment
Please, Sign In to add comment