Welcome, guest | Sign In | My Account | Store | Cart
@echo off
  setlocal
    set "str=ABCDEFGHIJKLMNOPQRSTUVWXYZ"
    set "len=0"
    
    :loop
    if defined str (set str=%str:~1%& set /a len+=1 & goto:loop)
    
    echo String length: %len%
  endlocal
exit /b

Diff to Previous Revision

--- revision 1 2013-09-18 12:37:40
+++ revision 2 2013-10-10 16:27:48
@@ -1,8 +1,5 @@
 @echo off
   setlocal
-    echo Please, visit my experimental blog at
-    echo http://my.opera.com/infiltrat0r/blog/
-    echo.
     set "str=ABCDEFGHIJKLMNOPQRSTUVWXYZ"
     set "len=0"
     

History