AutoHotkey Community

It is currently May 26th, 2012, 6:31 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 13 posts ] 
Author Message
PostPosted: March 23rd, 2005, 1:20 pm 
Offline

Joined: November 19th, 2004, 8:46 am
Posts: 7
Hello
I want to close the explorer.exe process with
Code:
process, close, explorer.exe


But the explorer.exe starts automatically.
Why?

Erich


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 23rd, 2005, 5:28 pm 
Offline

Joined: November 13th, 2004, 4:08 am
Posts: 2951
Location: Minnesota
Why, exactly, are you trying to close explorer.exe?!?

You do realize that it's the basis of the shell you're running, right? It's protected from process killing for a good reason.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 23rd, 2005, 6:00 pm 
Offline

Joined: November 8th, 2004, 12:46 am
Posts: 1271
My guess is that this is due to code behind Process, Close. Explorer.exe can be closed via task manager without it automatically restarting so perhaps there is an alternative way to close the process. You could try calling PSKill with the run command.

_________________
"Anything worth doing is worth doing slowly." - Mae West
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 23rd, 2005, 6:06 pm 
AFAIK to kill explorer means to reinitialize/refresh the system environment, isn't it (TBH, I don't know if AHK's EnvUpdate provides the same functionality :wink: ) ?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 24th, 2005, 7:39 am 
Offline

Joined: November 19th, 2004, 8:46 am
Posts: 7
A colleague at my work told me, that he needs to kill the process and asked me if I know a tool/program to do this. I dont know why he wants to kill the process.

I tried it with AHK and was astonished about the behavior, because if I kill explorer.exe via the taskmanager, it does not restart.


I think we will try pskill.

Thanks for your answers


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 24th, 2005, 9:18 am 
Offline

Joined: February 11th, 2005, 6:31 am
Posts: 174
Location: Germany
Perhaps it works with the WinKill Command...

http://www.autohotkey.com/docs/commands/WinKill.htm


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 9th, 2009, 2:42 pm 
Offline

Joined: July 22nd, 2008, 1:49 pm
Posts: 151
Did anyone ever figure out what worked?

I need to close down explorer aswell, i'm helping a friend make a script that will enable to run his computer without explorer running..

Any help would be appriciated :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 9th, 2009, 3:00 pm 
if you don“t want the explorer as shell,
simply tell windows, you want another shell:
Quote:
[for the current user]
HKEY_CURRENT_USER\ Software\ Microsoft\ Windows NT\ CurrentVersion\ Winlogon

"Shell" (REG_SZ) = "name.exe"


[for all users]
HKEY_LOCAL_MACHINE\ Software\ Microsoft\ Windows NT\ CurrentVersion\ Winlogon

"Shell" (REG_SZ) = "name.exe"




Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: June 9th, 2009, 4:44 pm 
Offline

Joined: July 22nd, 2008, 1:49 pm
Posts: 151
Not that much into how that would work. I'm simply trying to close explorer as if i had done it manually through ctrl+alt+del. Doing it with process, close results in it closing but then immediately restarting afterwards.

Thanks for your help though.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 9th, 2009, 8:56 pm 
Offline

Joined: October 7th, 2006, 4:50 pm
Posts: 3157
Location: MN, USA
The registry entry that determines whether explorer will automatically restart is in the same path that Z_Gecko pointed out (the Local branch). It's called AutoRestartShell. Set it to 0 for off, 1 for on. I used this in my IE Cache Delete script, because explorer is usually the process that keeps files "in use" and prevents deleting them.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 9th, 2009, 10:26 pm 
Offline

Joined: July 22nd, 2008, 1:49 pm
Posts: 151
Awesome, thanks alot! will test it out :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 9th, 2009, 10:57 pm 
maybe this:
Code:
run, taskkill /f /im explorer.exe


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: June 11th, 2009, 6:29 am 
Offline

Joined: July 22nd, 2008, 1:49 pm
Posts: 151
Setting AutoRestartShell to 0 did the trick :)

Thanks for your help everyone.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google [Bot], rbrtryn, SKAN and 55 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group