boat73 has asked for the wisdom of the Perl Monks concerning the following question:

I am using a variation of the code found at http://perlmonks.thepen.com/Win32::KillProcess.html to start a remoete process. It works great but is there a way to start a remote process with arguments like "diruse.exe /, /m /* c:\\". I don't wan't to start diruse but seemed like a good example. Thanks in advance for any help. boat73

Replies are listed 'Best First'.
Re: start remote process with arguments?
by ikegami (Patriarch) on Sep 19, 2004 at 22:13 UTC
    If you follow your own link, the first reply asks the same question, and the first reply to that question indicates you can pass arguments along with the name of the executable.
      Wow, my bad. I had tried that just doing a redirect two ways and it diidn't work. Must have been user error. Thanks for the reply sorry for the foolish post.
Re: start remote process with arguments?
by graff (Chancellor) on Sep 19, 2004 at 22:23 UTC
    This reply by tachyon in that Code Catacombs thread should give you the clue you want (i.e. put your whole command line in quotes, just like you did in your question). There might be issues you need to adapt to, like getting backslashes right, etc -- you should just try things out, and if they don't work, post the code that doesn't work.

    BTW, why did you give us an off-site link to a PM thread? Please read the PerlMonks FAQ about how to link to PM nodes (it's really easy to do, and it's better for all concerned).

      Thanks for the info, will work on my posting skills.