Sign in to follow this  
Followers 0
gfunk999

Cannot execute external program

5 posts in this topic

Hi all,

Does anyone have a clue why the attach BIOS (Winuptp.exe) program from lenovo errors when launched from AutoIT? Everything is ok if you manually luanch the program from its own folder.

I'm running this simple code:

#include <Process.au3>

EnvSet("path", "c:\drivers\flash")
Run("winuptp.exe", "", @SW_SHOW)

And I get this error:

Posted Image

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Nevermind I don't think you guys would be able to replicate I can't upload the program and you must have the same model to see what i'm seeing.

Hi all,

Does anyone have a clue why the attach BIOS (Winuptp.exe) program from lenovo errors when launched from AutoIT? Everything is ok if you manually luanch the program from its own folder.

I'm running this simple code:

#include <Process.au3>

EnvSet("path", "c:\drivers\flash")
Run("winuptp.exe", "", @SW_SHOW)

And I get this error:

Posted Image

Edited by gfunk999

Share this post


Link to post
Share on other sites

What OS?


♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites

Try setting the working directory to the program directory:

Run("c:\drivers\flash\winuptp.exe", "c:\drivers\flash", @SW_SHOW)

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Do as Jos said plus scrap this line!

You Append to the Path environment variable, You don't replace its existing contents with a new string!

Older systems and binaries will not like that at all, your program says 08 but your screenshot says 98/2k

Plus you are running a bios flash tool, which also screams 98/2k

EnvSet("path", "c:\drivers\flash")
Edited by Mobius

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