New
#1
Batch file: how to start a program [sidebar.exe]
Hi! I need some help with a batch file I'm writing.
Here's what I've got so far:
The first line works great; it terminates sidebar.exe fine. But, the next line is the problem. It doesn't open up the sidebar.exe, but instead opens up a useless command prompt window:Code:taskkill /F /IM sidebar.exe START "C:\Program Files (x86)\Windows Sidebar\sidebar.exe"
What am I doing wrong? I tried "....sidebar.exe \showgadgets" (some random argument I found online), but that does not work either. I also tried running the command via CMD, no luck. Tried CMD "Run As Administrator", no luck either.
EDIT: If I navigate to the Windows Sidebar folder with cd, then from there I can just type "sidebar.exe" and it will run. But how do I do that in a batch file?
Any ideas?
~Ibrahim~
P.S. Also...if anyone knows how to run a batch command automatically when on battery, that'd be lovely. Any powercfg gurus here?