Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I play some older games that require ending the process explorer.exe. This is fine, except I want a way to start explorer.exe back up when I am done playing. I thought to use this:
^#e::
Run, explorer.exe
Return
The weird thing is that when I run this, it opens one window in the "Libraries". However, when I open the task manager and Start new process --> explorer.exe, then everything comes back (desktop, taskbar, all of it).
Why does autohotkey's run, explorer.exe not do the same thing? How can I make it start explorer.exe so I get everything back, like I did with the task manager?
UPDATE: The solution is to put %windir%\explorer.exe. This is my final code, and it works properly.
#e::
Run, %windir%\explorer.exe
Return
Did you try running it using start.exe? i.e. Run, start explorer.exe
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 months ago.
Improve this question
Work has a requirement for certain employees to open a web-page and 'browse around'. Luckily they only register once you first access the site. Is there a way to create a windows script to open a webpage for 20s, then close it?
I think I can get the webpage to load with a service or something in Windows, no idea how to force close it after a period of time though??
I don't use Windows and cannot try it, but I think the simplest method is to use internal Windows scheduler.
schedule a task to open your page:
firefox -new-tab "https://www.visit_me.com"
schedule another task that should run after 20 seconds to kill the browser:
taskkill /im firefox.exe
The only disadvantage is that if you use firefox at that moment, it will be closed with your tabs as well. But you can duplicate firefox.exe to firefox_mytask.exe and use this clone in the scheduler to do what you need.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
In windows 7 when you click start...then the shut down button. what program is it calling to do the work?
You can always use where.exe to find things like this:
C:\>where shutdown.exe
C:\Windows\system32\shutdown.exe
There is a command-line process "shutdown.exe" which is generally the go-to for programmatic shutdowns/restarts.
http://technet.microsoft.com/en-us/library/bb491003.aspx
This does the actual shutting down. The various windows or dialogs you see asking you to choose how you want to shut down (shut down, sleep, hibernate, restart, log off) and/or asking you to confirm you want to do what you said you did are just part of the taskbar/start menu program, explorer.exe (which is also the Windows Explorer executable).
C:\Windows\System32\shutdown.exe
Though this is definitely not a Stack Overflow question.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Does anyone know how to set a scheduled task to run in background using Windows Task Scheduler?
There doesn't seem to be any option to do this.
As noted by Mattias Nordqvist in the comments below, you can also select the radio button option "Run whether user is logged on or not". When saving the task, you will be prompted once for the user password. bambams noted that this wouldn't grant System permissions to the process, and also seems to hide the command window.
It's not an obvious solution, but to make a Scheduled Task run in the background, change the User running the task to "SYSTEM", and nothing will appear on your screen.
Assuming the application you are attempting to run in the background is CLI based, you can try calling the scheduled jobs using Hidden Start
Also see: http://www.howtogeek.com/howto/windows/hide-flashing-command-line-and-batch-file-windows-on-startup/
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 13 years ago.
Improve this question
i wanted to run a .bat file in windows task scheduler, so i opened it, added a new task, browsed to the bat file, and... nothing happened. so i changed the timing to see if it'll run, and it didn't. next i right-clicked on the task and chose "run"- it didn't run. the file itself is only one line, basically backups a folder to a another location. it runs fine when not in the scheduler.
what can be done?
thank you
You should not give batch file directly as a task. Instead you should use
"C:\Windows\system32\cmd.exe" /C <completepathtobatchfile> <argstobatchfileifany>
the complete path to cmd.exe may vary in your case depending on which drive you installed OS and which version you are using.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
Is there a reliable equivalent of xkill for Windows?
For those who don't know what xkill is: it is a Unix tool which basically kills the process of any windows you click on.
A Windows port can be downloaded here.
Windows xkill.
Disclaimer:
I got it from google and I haven't tried it.
Update: Process Explorer has a window Finder function. Very useful to locate a window.
taskkill /im ProcessName.exe /f
The "f" is for "force".
PSKILL from the SysInternals suite is very handy. PSLIST and PSINFO are related tools. You can view the entire Sysinternals Live tools directory in a browser at http://live.sysinternals.com. , or download a ZIP file from here.
To kill process based on its window, install Process Explorer (from the Sysinternals). It got the option to find window's process by dragging over the window.
There is WinKill. Does exactly that and it's free. Rightckick -> Kill to get rid of hidden processes too.