cmd.rst
changeset 99 0fa8ff78a008
child 215 44ae18f7c0aa
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cmd.rst	Mon Apr 20 20:05:18 2009 +0300
@@ -0,0 +1,9 @@
+-*- 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