Jump to content

Recommended Posts

Posted (edited)

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
Posted

I thank you for your help but I don't know if you understood what I am trying to do. I don't see where the information in your link would help me.

Here is a link to someone who wants to do something similar http://stackoverflow.com/a/5852995 I think that there is solution there in C#.

Thanks again.

  • Moderators
Posted

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!

Posted

JLogan3o13,

Much thanks and gratitude to you.

Your information helped me out and I was at my wits end.

Steven

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