Sign in to follow this  
Followers 0
jheyde

Execution over a network Share?

2 posts in this topic

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---

CODE
DriveMapAdd ( "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}")

Share this post


Link to post
Share on other sites



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---

CODE
DriveMapAdd ( "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

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