Alternative for control userpasswords2

  • Thread starter Thread starter annamielke
  • Start date Start date
A

annamielke

Hi,
I am desperately looking for an alternative to open the User Accounts
dialog via the command line. The problem I am having is that I have
written an installation batch that needs to wait until a user has
closed the User Accounts window. This would be no problem when it was
opened e.g. via a rundll command.
But: If the window is opened via control userpasswords2 the batch halts
for about 5 seconds and - regardless of whether the window has been
closed or not - then continues.
Any suggestions on how I can open that dialog via command line without
using control userpasswords2 or making the batch wait until the window
has been closed?

Thank you in advance,
Anna
 
Hi,
I am desperately looking for an alternative to open the User Accounts
dialog via the command line. The problem I am having is that I have
written an installation batch that needs to wait until a user has
closed the User Accounts window. This would be no problem when it was
opened e.g. via a rundll command.
But: If the window is opened via control userpasswords2 the batch halts
for about 5 seconds and - regardless of whether the window has been
closed or not - then continues.
Any suggestions on how I can open that dialog via command line without
using control userpasswords2 or making the batch wait until the window
has been closed?

Thank you in advance,
Anna

I did not realise that such a minor issue could cause someone
to become desperate . . . Here is a somewhat crude solution:

@echo off
control userpasswords2
:again
tasklist | find /i "rundll32" > nul || goto Label1
ping localhost -n 2 > nul
goto again

:Label1
 
Thanks David, that works perfectly.

And Pegasus: Yeah, such problems can make you desperate, believe me ;-)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top