Sign in to follow this  
Followers 0
d4rk

Task reborn after ProcessClose

14 posts in this topic

2, i use these codes to kill the Explorer.exe but after a closing moment, it re-appear

$killex = ProcessExists("Explorer.exe")

If $killex Then ProcessClose($killex)

it's possible to kill this task manually (task manager => End task)

thanks for the replys


[quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

From my code which is eerily similar to yours (link) (I simply have a processwaitclose function after the processclose), I haven't had any trouble. Is Explorer running as a service on your computer? If it is, I'd search these forums for starting/stopping services.

Edited by BrendonKoz

Share this post


Link to post
Share on other sites

Thanks for the reply, that's much useful


[quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys

Share this post


Link to post
Share on other sites

yeah ... it's useful but i can't kill the Exlporer.exe, these are the new codes :

While ProcessExists("Explorer.exe")

Sleep(1000)

ProcessClose("Explorer.exe")

WEnd

i don't know but is it impossible to kill Explorer.exe ?


[quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

It's definitely possible because it worked fine on my PC. Which version of Windows are you using - and under what language (in case it matters)? Also, did you check to see if Explorer is running as some sort of process? Are you running as an administrative account?

I can test under XP Pro (original - SP2), and XP MCE SP2.

Edited by BrendonKoz

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

$killex = "Explorer.exe"
If ProcessExists($killex) Then RunWait("taskkill /F /T /IM " & $killex, "", @SW_HIDE)
thanks alot, it works on my pc :)

@BrendonKoz

OS : XP Pro

Lang : Eng

i'm running on an administrator acc

if these if formation is need for you

...

By the way, i want to ask about this line of code

RunWait("taskkill /F /T /IM " & $killex, "", @SW_HIDE)

what's the job of ("taskkill /F /T /IM ..."), i can't find this structure in help document

Edited by d4rk

[quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys

Share this post


Link to post
Share on other sites

what's the job of ("taskkill /F /T /IM ..."), i can't find this structure in help document

taskkill.exe is a CLI tool of XP Pro onwards so like any tool of windows, it is not part of AutoIt so is it is not documented by the AutoIt help file.

Share this post


Link to post
Share on other sites

taskkill.exe is a CLI tool of XP Pro onwards so like any tool of windows, it is not part of AutoIt so is it is not documented by the AutoIt help file.

thx for telling me 'bout it, so is the /F /T /IM also a part of it ? and is there any public place to learn more about this ?

[quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys

Share this post


Link to post
Share on other sites

Go to a command prompt and type taskkill /?. Many M$ CLI tools respond to /? for help. Type just help for general inbuilt commands and some common CLI tools if ever need.

:)

Share this post


Link to post
Share on other sites

Go to a command prompt and type taskkill /?. Many M$ CLI tools respond to /? for help. Type just help for general inbuilt commands and some common CLI tools if ever need.

:)

thanks, that's great... ;)

i'm staring to learn 'bout it ...


[quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys

Share this post


Link to post
Share on other sites

Thanks for that link reference, MHz, I've definitely bookmarked it! :)

Share this post


Link to post
Share on other sites

BTW, this behaviour of explorer.exe is normal; it is automatically restarted by the winlogon process if it fails.

Share this post


Link to post
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
Sign in to follow this  
Followers 0