Jump to content

programmatically starting the Windows Explorer shell


shx
 Share

Recommended Posts

Let me see if I can explain what I'm trying to do.

I would like to start explorer.exe as the windows shell programmatically.

When Windows starts up instead of running Explorer which is the standard shell of Windows, I have developed a replacement. The registry is updated to point to this replacement so it starts up automatically when Windows starts.

what I would like to do is when I exit exit this replacement have explorer run as the window shell.

If I enter control alt delete to start the task manager and I do file > new task and run explorer.exe it will start the explorer windows shell, but if I run explorer.exe with a shellexecute or a run it just opens up a regular file explorer window.

So to sum up, what I am trying to do is to be able to programmatically from an autoit script start the Windows Explorer shell and I can't seem to do it.

I hope I was understandable. Any help would really be greatly appreciated.

This is a Windows7 64bit computer environment.

Steven

Edited by shx
Link to comment
Share on other sites

  • Moderators

You could do something like this:

$WMI = ObjGet("winmgmts:" & @ComputerName & "rootcimv2")
$process = $WMI.Get("win32_process")
$process.create("explorer.exe")

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

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