Sign in to follow this  
Followers 0
Elkie

Can AutoIT do IT?

8 posts in this topic

Ok perhaps i'm a stupid boy, but i wanna ask can AutoIT executes an application from another PC as if the PC itself who runs it.

for example:

PC1 wants to execute autoITupdater.exe in PC2

usually if we remotely runs an updater or installer remotely then the remote pc itself who will be installed. not the PC where the exe file located. Can autoIT do the execution remotely from PC1 and doing as if its executed locally at PC2?? :o

i appreciate if code of example is included

Share this post


Link to post
Share on other sites



K, perhaps every viewers not quite understand what am i trying to say,

i know i can use run(), or somethin, but everytime i do with those function, it runs on the remote (the one that executes the apps remotely) and not on the file existed PC(local). any solutions?

Share this post


Link to post
Share on other sites

incorporate psexec from sysinternals w/ your script


Reading the help file before you post... Not only will it make you look smarter, it will make you smarter.

Share this post


Link to post
Share on other sites

K, perhaps every viewers not quite understand what am i trying to say,

i know i can use run(), or somethin, but everytime i do with those function, it runs on the remote (the one that executes the apps remotely) and not on the file existed PC(local). any solutions?

Try http://www.sysinternals.com/Utilities/PsTools.html

Alot of us use the psexec tool in conjunction with autoit


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

pstools??? hmmm, i thought that autoIT has the abilty, but then... nobody's perfect and thanks i'll try the psexe thing. Hope it'll works thanks again guys. :o

Share this post


Link to post
Share on other sites

gafrost, it didn't work. i dont' know what's wrong.

i use this script:

run(@ScriptDir & "\psexec.exe \\PC160  -i \\servPC\TEMPDATA\FROM ME\Office2003SP2.exe")

but nothing is happening, only showing the cmd window doing this and that but nothing is happening on the remote machine???? can anyone help this problem? :o

Share this post


Link to post
Share on other sites

k, i just found out that i have use space on the source, but still it won't work here's the code i've test

run(@ScriptDir & '\psexec.exe \\PC160  -i "\\servPC\TEMPDATA\FROM ME\Office2003SP2.exe"')

Share this post


Link to post
Share on other sites

It's probably your scriptdir - make sure if it has a space in it to surround it with quotes.

Share this post


Link to post
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
Sign in to follow this  
Followers 0