Jump to content

Run au3 script on remote computer with psexec


Recommended Posts

Hey there,
 
I'm trying to execute an Autoit script which is located on a remote computer (activation is with psexec), but nothing happens.
When I compile the au3 script and try to execute it remotely via psexec, everything is OK.

So what is the difference between running au3 file to exe file?

Both the computers are WinXP Pro SP3

 

The command is: RunWait('psexec remotecomputer -i C:...My_Script.exe"') ; this works!

*The command for au3 script is almost the same: RunWait('psexec remotecomputer -i C:...My_Script.au3"')

Thanks,

Link to comment
Share on other sites

  • Moderators

Is AutoIt installed on the remote PC? PSExec is meant for running executables on a remote machine, not an uncompiled script.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

I have the same Autoit3 on both computers

and I've tried the option:

RunWait('psexec remotecomputer -i C:...AutoIt3.exe C:...My_Script.au3"')

but still nothing happened

Perhaps there Is another way to execute au3 file on remote computer without using the psexec option.

Any ideas? 

Edited by shahino007
Link to comment
Share on other sites

  • Moderators

Why would you not just compile it to an executable and make it easier on yourself?

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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