Tiger Posted September 20, 2008 Share Posted September 20, 2008 I have a network with two PC. 1. Vista (Vista-PC) 2. XP (XP-PC) I have two scripts. Script 1 is on the XP-PC. This script runs the second script on the vista-pc. How can I do this Script 1 RunWait("\\VISTA-PC\test\setup.exe")oÝ÷ Ù'+vjëh×6MsgBox(0, "", "Setup is running!") My UDFs:- _RegEnumKey Link to comment Share on other sites More sharing options...
exodius Posted September 20, 2008 Share Posted September 20, 2008 http://technet.microsoft.com/en-us/sysinte...s/bb897553.aspx Link to comment Share on other sites More sharing options...
Tiger Posted September 20, 2008 Author Share Posted September 20, 2008 Thanks. i would like to do this with autoit only. pcexec doesn't do that My UDFs:- _RegEnumKey Link to comment Share on other sites More sharing options...
exodius Posted September 20, 2008 Share Posted September 20, 2008 So as I understand it, you have a script on Computer #1 that you want to run a script on Computer #2 so the script that Computer #1 is executing is actually taking place on Computer #2 (not on computer #1). About the only way to do that without psexec (which would be the easiest/most reliable way to go cross-operating system) might be doing it through COM, although I don't know whether Vista plays the exact same (being 64 bit) as far as COM goes or not. AutoIt isn't natively capable of executing scripts/programs in the context of a different machine than the one it's on. (The exception maybe being through COM) Although based on how I understand what you're asking, I don't see what psexec doesn't do that you want it to, so maybe I don't understand the situation clearly for that matter. Link to comment Share on other sites More sharing options...
Tiger Posted September 20, 2008 Author Share Posted September 20, 2008 Have you an example script My UDFs:- _RegEnumKey Link to comment Share on other sites More sharing options...
martin Posted September 20, 2008 Share Posted September 20, 2008 I have a network with two PC. 1. Vista (Vista-PC) 2. XP (XP-PC) I have two scripts. Script 1 is on the XP-PC. This script runs the second script on the vista-pc. How can I do this Script 1 RunWait("\\VISTA-PC\test\setup.exe")oÝ÷ Ù'+vjëh×6MsgBox(0, "", "Setup is running!")One way is to have a script running in the background on the Vista PC and you send it a message to start the installer program. That could be done by writting a file with an instruction in it on the Vista PC or using TCPIP or UDP. You could have VNC server on the Vista and use UVNC viewr on the XP PC and remotely control the Vista PC long enough to start the installer. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
exodius Posted September 20, 2008 Share Posted September 20, 2008 (edited) Have you an example script Well the easy route would be to download psexec.exe and put it in your C:\Windows\System32 folder. Then you could use ShellExecuteWait ("psexec", "\\VISTA-PC C:\test\setup.exe") For doing it through COM, I'd google how to do that with vbscript and then look at transposing that to AutoIt. Edited September 20, 2008 by exodius Link to comment Share on other sites More sharing options...
Tiger Posted September 21, 2008 Author Share Posted September 21, 2008 That doesn't run. Your Script runs the setup.exe on the XP-PC and not on the Vista-PC My UDFs:- _RegEnumKey Link to comment Share on other sites More sharing options...
Tiger Posted September 21, 2008 Author Share Posted September 21, 2008 Can everyone help me, please My UDFs:- _RegEnumKey Link to comment Share on other sites More sharing options...
SIone Posted September 21, 2008 Share Posted September 21, 2008 Can everyone help me, pleaseMake your life easier: Drop vista! Perilous to all of us are the devices of an art deeper than we ourselves possess. Link to comment Share on other sites More sharing options...
martin Posted September 21, 2008 Share Posted September 21, 2008 Can everyone help me, pleasePsexec looks like it shoul do the job though I have never used it. You need to run it from the cmd prompt to experiment with it. Have you seen the notes here?Can you bave a script which always runs in the background on the Vista PC? If so then you can use the suggestion I made earlier. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
DW1 Posted September 22, 2008 Share Posted September 22, 2008 (edited) Try using windows task scheduler to execute on a remote machine. Edited September 22, 2008 by danwilli AutoIt3 Online Help 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