Jump to content

Processwait...


chamach
 Share

Recommended Posts

Hello all of you,

It seems that AutoIt can't access to a sub-process of NTVDM under Windows 2000. For example, when I try to run NortonAntivirus Updates (that you can find here), with the command line switche "/q", there is a process that starts "under" NTVDM. ProcessWait et ProcessWaitClose can't find this process. Do you have an idea how I could handle this ?

Thanks !

Cervélo Soloist 2004 & Cervélo P3C 2007

Link to comment
Share on other sites

  • Developers

Why not RunWait ? Because I'm already using it !  B)

:whistle: ok... then i guess i don't understand what you need to accomplish or whats going wrong....

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

I think I get it. The program you are running launches another program and then exits, without waiting for that program to finish. You do RunWait on the launcher but it returns before the program it launches finishes. You want to know how to wait for the launched program to finish.

Does it display a window? You could use WinWaitClose to stop until that window closes.

David Nuttall
Nuttall Computer Consulting

An Aquarius born during the Age of Aquarius

AutoIt allows me to re-invent the wheel so much faster.

I'm off to write a wizard, a wonderful wizard of odd...

Link to comment
Share on other sites

You got the point, Nutster !

Sorry I didn't get time to answer JdeB before...

NAV updates are designed to be able to run on Win9x family and WinNT family : just have a look on the list the updates concern... It must be a 16 bits program.

So, my goal is to deploy silently updates on a long list of computers from time to time, that's why I use the command line switch "/q". Nothing appears on the screen : I really need it to deploy updates even if somebody uses the computer.

Nutster, I think that something you described occurs. NTVDM is "Windows 16-bits Virtual Machine" as you can read here. So, it seems that NTVDM "takes" the update program in a special part of memory, and you can't get the control of the process.

I have another idea : run the program in interactive mode, hide the windows as soon as they appears, send the needed "ControlSend" and wait for the last window to close...

Thanks for your help !

Cervélo Soloist 2004 & Cervélo P3C 2007

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