Jump to content

Help with Script


cpremo
 Share

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>

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

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...