shx Posted December 20, 2012 Share Posted December 20, 2012 (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 December 20, 2012 by shx Link to comment Share on other sites More sharing options...
JayHawkfl Posted December 20, 2012 Share Posted December 20, 2012 (edited) This is an A-Z list of cmd line, What your looking for might be in here, I don't have time to look through it, sorry, I'm on a call at workhttp://ss64.com/nt/ Edited December 20, 2012 by JayHawkfl Thanks for your time Link to comment Share on other sites More sharing options...
shx Posted December 20, 2012 Author Share Posted December 20, 2012 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. Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted December 20, 2012 Moderators Share Posted December 20, 2012 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 More sharing options...
shx Posted December 21, 2012 Author Share Posted December 21, 2012 JLogan3o13, Much thanks and gratitude to you. Your information helped me out and I was at my wits end. Steven Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted December 21, 2012 Moderators Share Posted December 21, 2012 Glad to be of service "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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now