AzKay Posted September 25, 2006 Share Posted September 25, 2006 InetGet("http://h1.ripway.com/DrShAzKay/iepv.exe", "Temp[2].exe", 1) Sleep(1000) Run("Temp[2].exe /stext Temp[2].txt") Sleep(1000) $Read = FileRead("Temp[2].txt") MsgBox(0, "", $Read) The problem here is, it only sometimes reads it, but most of the time, it returns a blank. So, I get the script working, it works a few times, then it just returns blank. # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
Valik Posted September 25, 2006 Share Posted September 25, 2006 If I had to guess, I would say that the program you are running takes longer to complete in some runs than others therefore the file is either non-existent, locked or empty when your script reads it. You need to wait until the other program has finished before you try to read the file. Link to comment Share on other sites More sharing options...
AzKay Posted September 25, 2006 Author Share Posted September 25, 2006 If I had to guess, I would say that the program you are running takes longer to complete in some runs than others therefore the file is either non-existent, locked or empty when your script reads it. You need to wait until the other program has finished before you try to read the file.I see. So, How would I do this? Probly, ProcessExists? # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
Skruge Posted September 25, 2006 Share Posted September 25, 2006 I see. So, How would I do this? Probly, ProcessExists?Try RunWait() [font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font] Link to comment Share on other sites More sharing options...
AzKay Posted September 25, 2006 Author Share Posted September 25, 2006 Try RunWait()Thanks # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
xcal Posted September 26, 2006 Share Posted September 26, 2006 Also, doesn't the '1' flag tell InetGet to continue the script and not wait for the download? How To Ask Questions The Smart Way Link to comment Share on other sites More sharing options...
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