RE: experimenting with Wscipt.shell
What result do you exactly mean? The entire dos box? or the output of the last command? And is that output always just 1 line, or not (remember that many commands produce an unknown amount of multiple lines of text output). And what exact commands do you want to use (most important question)?
As I said, it is extremely hard to do such a thing properly. Even using a simply 'trick' as commandline redirecting (which wouldn't always work depending on the command you used) where you output everything to a text file and then send the text file to the contact is troublesome and probably wont always work in a decent way.
It is very hard, if not impossible to write something generic which would always work for every command. Therefore you need to specify exactly what you want to do. "get the output" is way too general.
Believe me, it would be much much easier if you simply invoke something like remote desktop if you don't know exactly what stuff you want to do on the remote PC.
.-= A 'frrrrrrrituurrr' for Wacky =-.
|