cmd.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Tue, 07 Jul 2009 09:30:20 +0300
changeset 159 8aa1d5c18313
parent 99 0fa8ff78a008
child 215 44ae18f7c0aa
permissions -rw-r--r--
merged

-*- outline -*-

* CMD tricks.

  $ set /p TOOLOUTPUT= < temp.txt

  $ for /f "tokens=*" %%i in ('%~dp0sometool.exe') do set TOOLOUTPUT=%%i

  $ for /f "tokens=1 delims=" %%s in (users.txt) do (echo %%S & command "%%S") >> outputfile.txt