first off i know nothing about cmd's.scripts ..etc
what i want i to be able to do is instantly kill windows magnifier with a single key bound to my keyboard.
i found a script file (cmd) to kill a certain file online and i edited it to point to magnify.exe and renamed to kill mag.cmd
the file does as i want but i always have to right click and select run as admin from context menu.
i cant find a way to set this as run as admin permanently so i can bind to my keyboard.
i tried renaming the file to ahk and using auto hotkey but it dosent recognize the commands.
is there any other option to make this file always run as admin ?
is the only way to make this run always as admin is to make cmd.exe always run as admin ?
is there reason i shouldnt make cmd.exe always admin ?
anybody want to help turn this into a working ahk file ?
files contents =
REM Kill all instances of magnify.exe
: again
REM Check for instances of magnify, then kill them
tasklist /FI "IMAGENAME eq magnify.exe" | find /I /N "magnify"
if "%ERRORLEVEL%"=="0" taskkill /f /im magnify.exe
TIME /T
REM Set timeout interval in seconds
timeout /t 180 >nul
GOTO again
thanks
what i want i to be able to do is instantly kill windows magnifier with a single key bound to my keyboard.
i found a script file (cmd) to kill a certain file online and i edited it to point to magnify.exe and renamed to kill mag.cmd
the file does as i want but i always have to right click and select run as admin from context menu.
i cant find a way to set this as run as admin permanently so i can bind to my keyboard.
i tried renaming the file to ahk and using auto hotkey but it dosent recognize the commands.
is there any other option to make this file always run as admin ?
is the only way to make this run always as admin is to make cmd.exe always run as admin ?
is there reason i shouldnt make cmd.exe always admin ?
anybody want to help turn this into a working ahk file ?
files contents =
REM Kill all instances of magnify.exe
: again
REM Check for instances of magnify, then kill them
tasklist /FI "IMAGENAME eq magnify.exe" | find /I /N "magnify"
if "%ERRORLEVEL%"=="0" taskkill /f /im magnify.exe
TIME /T
REM Set timeout interval in seconds
timeout /t 180 >nul
GOTO again
thanks