Jump to content

Recommended Posts

Posted

There is a sfx archive, after starting the which is extracted and run some program. Its name is unknown. How can I track the time of completion of the program?

Posted

If you do then >>

ConsoleWrite('This was Open for a total of: ' & _RunWait('C:\Program Files\Internet Explorer\iexplore.exe', @ScriptDir) & ' ms' & @CRLF)

Func _RunWait($sFilePath, $sWorkingDirectory, $iShowFlag = @SW_SHOW, $iOptFlag = -1)
    Local $iPID = Run($sFilePath, $sWorkingDirectory, $iShowFlag, $iOptFlag)
    Local $hTimer = TimerInit()
    Do
        Sleep(20)
    Until ProcessExists($iPID) = 0
    Return TimerDiff($hTimer)
EndFunc   ;==>_RunWait

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

I'll write another example.

Open the zip archive. Then in it we open the program. Complete the process by opening the archive. The program is still running. Completion of the program. Now you get the point.

guinness -- your example in this case does not work.

Posted

  On 10/22/2012 at 3:35 PM, 'AMSPeople said:

I'll write another example.

Open the zip archive. Then in it we open the program. Complete the process by opening the archive. The program is still running. Completion of the program. Now you get the point.

guinness -- your example in this case does not work.

I got your point before, you just didn't explain it clearly in your first post. I'm sure there is a simpler approach, are you using 7-Zip. Show code, as this will result in a better answer.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

  On 10/22/2012 at 10:55 PM, 'guinness said:

I got your point before, you just didn't explain it clearly in your first post. I'm sure there is a simpler approach, are you using 7-Zip. Show code, as this will result in a better answer.

http://rghost.ru/private/41108068/a4e8759c9965fa26a99e248810c7ebe3

If you run the file 7zFM.sfx.exe (link above), it will be started 7zFM.exe. Need to get the time of completion of work 7zFM.exe.

Posted

Why not just extract with 7-Zip instead of running it.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

Because the files will be about 40 pieces. And they should run automatically one after the other. And for this I should know that the previous installer has completed its work.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...