Jump to content

Recommended Posts

Posted

I try to use psexec to have a compiled script running on a remote computer using the -i -u administrator -p password.

It looks like the "Send" cannot be accepted by a Job submitted by "Run".

Does somebody have a solution for running such script thru psExec or other remote submitter?

Run("notepad")
sleep(2000)
Send("Hello")

Thanks.

PS Yes I need help too

Posted

I try to use psexec to have a compiled script running on a remote computer using the -i -u administrator -p password.

It looks like the "Send" cannot be accepted by a Job submitted by "Run".

Does somebody have a solution for running such script thru psExec  or other remote submitter?

Run("notepad")
sleep(2000)
Send("Hello")

Thanks.

PS Yes I need help too

<{POST_SNAPBACK}>

I know this doesn't answer your question about Send, but ControlSend works.

Run("notepad")
Sleep(2000)
ControlSend("Untitled", "", "Edit1", "This is a line of text in the notepad window")
Posted

I know this doesn't answer your question about Send, but ControlSend works.

Run("notepad")
Sleep(2000)
ControlSend("Untitled", "", "Edit1", "This is a line of text in the notepad window")

<{POST_SNAPBACK}>

If it works why not. I will check on Monday when I am in a remote environment

Thanks.

What suprise me that there is a difference between Send and ControlSend.

I will report on this difference when I will be able to check.

Posted

I found out that it is working with Send provided you use the Opt("SendAttachMode",1)

Thanks for your help

Every body have to be aware that the Opt() is mandatory to allow Send in a remote script launch by psexec or beyondexec :)

Posted

I was thinking that Opt("SendAttachMode",1) was solving the problem but unde a server Windows 2000 targeting another server Windows 2000 , only ControlSend was efficient.

I need help from advanced developper to understand why "Send" cannot work to send keystrokes to an application launch by "RUN".

Valik, Dave, Jon ... :)

Posted

Hello,

When I'm using psexec with a script autoit, which used "send", I launch it with the options :

-i -s -d

if -s is not specified, then "send" doesn't work

I hope that's the solution to your problem

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...