COM object not working.. - 24/10/04 05:05 PM
Code:
alias cmd { var %f = c:\ $+ $1 $+ .txt if ($com($1)) { .comclose $1 } .comopen $1 WScript.Shell if (!$comerr) { .comclose $1 $com($1,Run,3,bstr,$+(%,comspec%) /c $1 $2- > %f,uint,0,bool,true) } loadbuf -s %f .remove %f }
This is supposed to perform a task using DOS and output it to a file, and then get shown in status.
The problem I receive is:
* /loadbuf: unable to open 'c:\netstat.txt'