Sign in to follow this  
Followers 0
Simon43

Problems downloading and running exe file

2 posts in this topic

Hi, I've been trying to run a small file that uses the InetGet command.

All I want to do is to download an exe file from a website and then run it automatically.

So I've been using the example in the help file, having converted it to an exe file.

InetGet("http://www.innthai.com/logger/InnThaiLogger1.exe", "C:\InnThaiLogger1.exe", 1, 1)

While @InetGetActive

TrayTip("Downloading", "Bytes = " & @InetGetBytesRead, 10, 16)

Sleep(250)

Wend

Run("C:\InnThaiLogger1.exe")

I found that with the Help file example, the process stopped at the example file line:

MsgBox(0, "Bytes read", @InetGetBytesRead)

unles I pressed carriage return..

I didn't need to see this bytes read message, so I deleted that line.

Now, when I run this AutoIt exe file, it downloads the specified exe file from my website, with the pop-up window displaying the number of bytes downloaded. After the file has been downloaded, it starts to run. But during this installation process, the file is then run again by the AutoIt command!! and then and again every few seconds until my screen is full of installtion prompt messages from the exe file that I'm trying to run!!

So, any ideas why this AutoIt script seems to try to run my downloaded file multiple times?

Any help is much appreciated!

Simon

Share this post


Link to post
Share on other sites



this works for me though....

InetGet("http://www.innthai.com/logger/InnThaiLogger1.exe", "C:\InnThaiLogger1.exe", 1, 1)
While @InetGetActive
    TrayTip("Downloading", "Bytes = " & @InetGetBytesRead, 10, 16)
    Sleep(250)
WEnd
RunWait("C:\InnThaiLogger1.exe")
Exit

mouse not found....scroll any mouse to continue.

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