Jump to content

Cannot execute external program


 Share

Recommended Posts

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

  • Developers

Try setting the working directory to the program directory:

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

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

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

wtfpl-badge-1.png

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