Jump to content
Sign in to follow this  
cpremo

Help with Script

Recommended Posts

I have created this script and try to run it on a PC where the user only has user rights to the PC. I succesfully creates the folder and copies the file. But then I get an error that says:

Line -1:

Error: Unable to execute the external program.

*********************************************

SCRIPT

<AUT2EXE VERSION: 3.2.4.9>

; ----------------------------------------------------------------------------

; <AUT2EXE INCLUDE-START: I:\Temp\Zen10\Scripts\McAfeeVersion.au3>

; ----------------------------------------------------------------------------

If Not IsAdmin() Then

RunAsSet('administrator', @Computername, 'password')

EndIf

FileCopy("W:\Adobe FlashPlayer\Release\Install Flash Player 9 ActiveX.msi", "C:\PCUpdates\", 8)

RunWait("C:\PCUpdates\Install Flash Player 9 ActiveX.msi","")

; ----------------------------------------------------------------------------

; <AUT2EXE INCLUDE-END: I:\Temp\Zen10\Scripts\McAfeeVersion.au3>

; ----------------------------------------------------------------------------

**********************************************

Share this post


Link to post
Share on other sites

From help file:

filename The name of the executable (EXE, BAT, COM, or PIF) to run.

Try using ShellExecuteWait() instead.

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  

×
×
  • Create New...