jheyde Posted March 21, 2008 Posted March 21, 2008 What I'm trying to do is perform an automated software install remotely using a program called CornerStone. It allows for remote execution of files over groups of computers. The setup I've got is a Snap server with a network share that holds my exe's. I map the drive to that share and then try to execute the installer file. Everytime I do I get: AutoIT Error: Line -1: Error: Unable to execute the external program. The system cannot find the file specified. I'm new to this and would appreciate any advice on how to do this. I appreciate everyones time. Here's my code--- CODEDriveMapAdd ( "z:", "\\SNAP724226\jheyde" , "","user","password") sleep (5000) Run ("GoogleInstall.exe", "z:\") WinWaitActive ("Open File - Security Warning") ControlClick ("Open File - Security Warning", "", 4423) WinWaitActive("Google Updater", "") Send ("{TAB}") Send ("{SPACE}") Sleep (180000) Send ("{SPACE}") Send ("{ENTER}") WinWaitActive ("Google Earth Plus") Send ("{!+F}") Send ("{UP}") Send ("{UP}") Send ("{UP}") Send ("{ENTER}")
PsaltyDS Posted March 21, 2008 Posted March 21, 2008 What I'm trying to do is perform an automated software install remotely using a program called CornerStone. It allows for remote execution of files over groups of computers. The setup I've got is a Snap server with a network share that holds my exe's. I map the drive to that share and then try to execute the installer file. Everytime I do I get:AutoIT Error: Line -1:Error: Unable to execute the external program. The system cannot find the file specified. I'm new to this and would appreciate any advice on how to do this. I appreciate everyones time.Here's my code---CODEDriveMapAdd ( "z:", "\\SNAP724226\jheyde" , 0,"user","password")sleep (5000)Run ("GoogleInstall.exe", "z:\")WinWaitActive ("Open File - Security Warning")ControlClick ("Open File - Security Warning", "", 4423)WinWaitActive("Google Updater", "") Send ("{TAB}")Send ("{SPACE}")Sleep (180000)Send ("{SPACE}") Send ("{ENTER}")WinWaitActive ("Google Earth Plus")Send ("{!+F}")Send ("{UP}")Send ("{UP}")Send ("{UP}")Send ("{ENTER}")If you want to default the flags in DriveMapAdd(), use 0 vice "", and test the result for error handling before you go blindly on.Providing a temp dir of "z:" does not necessarily path the executable, so your Run() should have the full path to the .exe file.Other than that, execution over a network should work fine. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
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