cmd.rst
changeset 350 f7899ef26f6f
parent 216 89e2ee90bc4c
child 355 cbb3da2b12fb
equal deleted inserted replaced
349:1b4645c01b82 350:f7899ef26f6f
    45   $ set /p TOOLOUTPUT= < temp.txt
    45   $ set /p TOOLOUTPUT= < temp.txt
    46 
    46 
    47   $ for /f "tokens=*" %%i in ('%~dp0sometool.exe') do set TOOLOUTPUT=%%i
    47   $ for /f "tokens=*" %%i in ('%~dp0sometool.exe') do set TOOLOUTPUT=%%i
    48 
    48 
    49   $ for /f "tokens=1 delims=" %%s in (users.txt) do (echo %%S & command "%%S") >> outputfile.txt
    49   $ for /f "tokens=1 delims=" %%s in (users.txt) do (echo %%S & command "%%S") >> outputfile.txt
       
    50 
       
    51 * Limits.
       
    52 
       
    53 Variable value and one line command string after expansion can not exceed 8191
       
    54 characters for Windows XP and later and 2047 for Windows NT, Windows 2000.
       
    55 
       
    56   http://support.microsoft.com/default.aspx?scid=kb;en-us;830473
       
    57                 Command prompt (Cmd. exe) command-line string limitation