MScmd
Posted by HellRaz0r
Monday, December 04, 2006
Description: Mircosoft Cmd I/O method


/MScmd <command>
alias MScmd {
  var %com $+(cmd,$ticks) | .comopen %com wscript.shell
  if (!$comerr) .comclose %com $com(%com,run,1,bstr,cmd.exe /c pushd $mircdir && $1- > $qt($mircdirshellout) 2>&1,uint,7,bool,true)
  var %x 1 | while (%x <= $lines(shellout)) { if ($read(shellout,nt,%x)) echo -a $v1 | inc %x }
.remove shellout
}
Wow!
Posted by dAce
Friday, January 26, 2007 11:08pm PST
Thanks~ interesting :D
Submit a comment
Oops! You need to login or register before you can post a comment!

ebaum's world