Elkie Posted February 22, 2006 Share Posted February 22, 2006 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?? i appreciate if code of example is included Link to comment Share on other sites More sharing options...
Elkie Posted February 22, 2006 Author Share Posted February 22, 2006 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? Link to comment Share on other sites More sharing options...
flyingboz Posted February 22, 2006 Share Posted February 22, 2006 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. Link to comment Share on other sites More sharing options...
GaryFrost Posted February 22, 2006 Share Posted February 22, 2006 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.  Link to comment Share on other sites More sharing options...
Elkie Posted February 22, 2006 Author Share Posted February 22, 2006 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. Link to comment Share on other sites More sharing options...
Elkie Posted February 22, 2006 Author Share Posted February 22, 2006 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? Link to comment Share on other sites More sharing options...
Elkie Posted February 22, 2006 Author Share Posted February 22, 2006 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"') Link to comment Share on other sites More sharing options...
greenmachine Posted February 22, 2006 Share Posted February 22, 2006 It's probably your scriptdir - make sure if it has a space in it to surround it with quotes. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now