Thursday, 20 May 2010

make windows "usable"

dir /b *.txt | xargs --verbose --max-lines=1 cmd /c start notepad

launch notepad for each txt
"cmd /c start" to prevent notepad occasionally not releasing its hook and let command continue, not a must

notepad supports only one argument, and --max-lines=1 is needed. Otherwise all the file-names will form a single file-name recognized by notepad.exe

No comments:

Labels

Search This Blog