Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Re: How can I open and use a DOS window on another computer?

by l3nz (Friar)
on Nov 24, 2003 at 09:18 UTC ( [id://309473]=note: print w/replies, xml ) Need Help??


in reply to Re: How can I open and use a DOS window on another computer?
in thread How can I open and use a DOS window on another computer?

In this case, you would not use Cmd.exe but rather WScript.Shell to perform file and network operations on a remote machine; and you can even launch programs from it (see The behavior of Win32::OLE->new from a couple of weeks ago). Being an OLE object, it's fully scriptable in Perl using Win32::OLE.

Replies are listed 'Best First'.
Re: Re: Re: How can I open and use a DOS window on another computer?
by BrowserUk (Patriarch) on Nov 24, 2003 at 12:44 UTC

    Nice thought, but the OP's requirements were that the commands be executed in a visible command line window on the target machine, and I can't quite see how to do that using WSH? Either the commands will run in the background, or each will be started in it's own window I think?

    I guess a clearer explaination of what the OP is trying to achieve would make it easier to know what to suggest.


    Examine what is said, not who speaks.
    "Efficiency is intelligent laziness." -David Dunham
    "Think for yourself!" - Abigail
    Hooray!
    Wanted!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://309473]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-04-24 08:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found