Skip to content

Instantly share code, notes, and snippets.

@donnaken15
Last active May 30, 2020 20:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save donnaken15/82245da3a18ba260c5a1107d8713c5b8 to your computer and use it in GitHub Desktop.
Save donnaken15/82245da3a18ba260c5a1107d8713c5b8 to your computer and use it in GitHub Desktop.
BEGONE, .LNKS!!! use like so: (exepath kit "C:\Program...Kinesics Text Ed...\x64\kit.exe") or (exepath /r kit)
@echo off
if "%1"=="/r" goto :rem
:add
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\%1.exe" /ve /d %2 /f
exit /b
:rem
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\%2.exe" /f
exit /b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment