Jump to content

Winwaitactive Problem


Recommended Posts

This one has me really confused.

I'm doing an automated install through a login script. The first thing I do is

Run("cmd.exe")

Then I'm doing a WinWaitActive to start fire off the rest of the script. I was just doing and if statement to see if the OS was Win2k or WinXP and it was working fine. Then I went to test on one last PC before I was done. It seems there's two different ways that the command prompt will title the window. I've got:

C:\WINNT\System32\cmd.exe

and

C:\WINNT\system32\cmd.exe

On all of the machines the actual path is with the lowercase "s", but the command prompt title is uppercase on some machines.

I'm still pretty new to Autoit and I can't seem to think of a way to check to get the title correct. It's probably pretty easy but I can't seem to figure it out.

Any help would be MUCH appreciated.

Thanks.

Edited by rchamberlin
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...