Jump to content

Test if Explorer fully loaded


ChrisR

Recommended Posts

I am looking for an idea to launch a program after Explorer is fully loaded.

I tried with this but it is too early:

HKCU\software\Microsoft\Windows\CurrentVersion\RunOnceHKLM\software\Microsoft\Windows\CurrentVersion\Policies\Explorer\Run

It works like this (Autoit) by setting the wait time but it depends on the PC

ProcessWait("explorer.exe", 60000)sleep(5000)

I'd like to do it at the earliest, but not too early ;)

Link to comment
Share on other sites


pecmd.exe has a function for it. i do not know to use it very good but can be something like this. just for you to understand the logic.

pecmd.ini

TEAM WAIT 2000|EXEC =!%WinDir%\SYSTEM32\OEM.CMD

need to put

"pecmd.exe load %WinDir%\SYSTEM32\pecmd.ini"

to

HKLM\software\Microsoft\Windows\CurrentVersion\Policies\Explorer\Run

but maybe you will need to use pecmd call two times. from pecmd.ini need to call another pecmd2.ini. because explorer waits until the 2000 finishes and opens later.ı have solved it in a way but need to check at home how did i do it.

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

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