cpremo Posted December 11, 2007 Posted December 11, 2007 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> ; ---------------------------------------------------------------------------- **********************************************
Nahuel Posted December 11, 2007 Posted December 11, 2007 From help file:filename The name of the executable (EXE, BAT, COM, or PIF) to run.Try using ShellExecuteWait() instead.
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