How to bring calc.exe to front?
The batch-file to check if calc.exe
is already started doesn't have to be as elaborate as uprego stated.
But first... Do you really want to switch to the current calc.exe
? Or do you just want one calc.exe
running. If you don't need to switch to the current one you can just make a batch-file which kills the first and runs a new instance of calc.exe
:
calc.bat
:
@echo off
taskkill /f /im "calc.exe"
start calc.exe
Only downside is you loose the current result in your previous calculation.
If you don't want the current calc.exe
to be killed there are also solutions to bring it to the front (but they will be somewhat more complicated). Let me know if you really want to switch to the current calc.exe
and i'll try to do some further searching.
Related videos on Youtube
Admin
Updated on September 18, 2022Comments
-
Admin over 1 year
I have the following code assigned to a VAIO button:
C:\Windows\System32\calc.exe
But each time I press the VAIO button I get a new instance of the calculator in a new window. What would be the command line that brings the calculator to front if there is already a window of it?
BTW: I tried the following, but it didn't work. It just behaves as the VAIO button:
start /B calc # doesn't work
Best Regards
-
Admin over 10 yearsIf I check SO I find for example: stackoverflow.com/questions/557166/…