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
Subscribe to:
Post Comments (Atom)
Labels
- ahk (1)
- android (1)
- apache (1)
- cifs (1)
- cygwin (2)
- E17 (1)
- gOS (1)
- grldr (4)
- grub (4)
- linux (5)
- mp4 (4)
- mysql (2)
- mytv (5)
- mytv download (5)
- php (2)
- pidgin (1)
- pxe (1)
- rtmp (7)
- rtmpdump (1)
- rtmpe (5)
- samba (1)
- sed (5)
- ssed (4)
- tvb (1)
- tvb.com (6)
- tvb.com.hk (6)
- ubuntu (2)
- virtualbox (1)
- winflp (1)
- xargs (1)
No comments:
Post a Comment