Login Register






[AutoIt]Restart explorer filter_list
Author
Message
[AutoIt]Restart explorer #1
Code:
Run("explorer.exe",Call(ProcessClose("explorer.exe")))

Just gonna say if you can do that in 1 line of code in other languages Tongue
Pierce the life fibers with your drill.

Reply

RE: [AutoIt]Restart explorer #2
AutoIt Really is great. Smile

Reply

RE: [AutoIt]Restart explorer #3
There you go, Powershell:
Code:
foreach ($objItm in Get-Process) { If ($objItm.ProcessName -eq "explorer") { kill $objItm.ID } }

One line of code lol Smile

I see you got a couple ideas for AutoIt Scripts from what i've posted though, that's good, nice easy code here.
ArkPhaze
"Object oriented way to get rich? Inheritance"
Getting Started: C/C++ | Common Mistakes
[ Assembly / C++ / .NET / Haskell / J Programmer ]

Reply

RE: [AutoIt]Restart explorer #4
You can do this in C either. Write your code with no indentation and never hit enter. Smile)

Reply

RE: [AutoIt]Restart explorer #5
You could do it in perl too if you wanted to.
ArkPhaze
"Object oriented way to get rich? Inheritance"
Getting Started: C/C++ | Common Mistakes
[ Assembly / C++ / .NET / Haskell / J Programmer ]

Reply

RE: [AutoIt]Restart explorer #6
no i mean like in 1 function Tongue
Pierce the life fibers with your drill.

Reply

RE: [AutoIt]Restart explorer #7
Here you go then lol

Powershell:
Code:
stop-process -name "explorer"
ArkPhaze
"Object oriented way to get rich? Inheritance"
Getting Started: C/C++ | Common Mistakes
[ Assembly / C++ / .NET / Haskell / J Programmer ]

Reply

RE: [AutoIt]Restart explorer #8
but you just kill explorer.exe in that line and it wont start it again Tongue
Pierce the life fibers with your drill.

Reply

RE: [AutoIt]Restart explorer #9
No, it starts back up lol trust me

You haven't tested the script that tells me Smile but with powershell it automatically starts the process back up, only for explorer.exe
ArkPhaze
"Object oriented way to get rich? Inheritance"
Getting Started: C/C++ | Common Mistakes
[ Assembly / C++ / .NET / Haskell / J Programmer ]

Reply

RE: [AutoIt]Restart explorer #10
(11-26-2011, 08:12 AM)Infinity Wrote: No, it starts back up lol trust me

You haven't tested the script that tells me Smile but with powershell it automatically starts the process back up, only for explorer.exe
Not my fault for knowing nuffin about powershell Biggrin
Can you write a tut for starting to learn and code powershell in the other languages section? Biggrin
btw If you have more than 20-30 threads with [PowerShell] in them the admin will make a powershell section Smile
Pierce the life fibers with your drill.

Reply