Jump to content
Sign in to follow this  

Can someone clarify why autoit works and not batch or powershell?

Recommended Posts

I'm on Windows 8.1.
I've been trying for weeks to make a batch file to restart Windows explorer. But when I would run the batch file, file explorer would always open up with explorer.exe even though the only lines in my batch file were

taskkill /f /IM explorer.exe

File explorer kept opening up when I would run the batch file, so I sought elsewhere and ended up trying a powershell script.
The same thing happened. Explorer would restart and open file explorer along with it.

So I did more searching and found Autoit, and one simple line of code.


And it does exactly what I was wanting. It restarts Windows explorer and it doesn't open up file explorer with it.
I'm just confused as to why this works when the code looks exactly the same to me just different syntax

Edited by berbe01

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...