:snip C: REM The below calls Snip & SKetch in Windows 10 (its a universal app) explorer.exe shell:appsFolder\Microsoft.ScreenSketch_8wekyb3d8bbwe!App FOR /F "usebackq tokens=3*" %%A IN (`REG QUERY "HKCU\Software\Binary Fortress Software\DisplayFusion" /v MonitorFadingEnabled`) DO (set mfstatus=%%A) if %mfstatus% EQU 0 goto :eof if %mfstatus% NEQ 0 goto :fadetoggle goto :eof :sniploop tasklist /fi "imagename eq ApplicationFrameHost.exe" /v | find /i "Snip & Sketch" 2>NUL if %errorlevel% EQU 0 goto :sniploop if %errorlevel% NEQ 0 goto :fadexit goto :eof :fadetoggle C: Cd C:\PROGRA~2\DisplayFusion\ displayfusioncommand.exe -functionrun "Toggle Monitor Fading" goto :sniploop goto :eof :fadexit C: Cd C:\PROGRA~2\DisplayFusion\ displayfusioncommand.exe -functionrun "Toggle Monitor Fading" goto :eof :eof exit