Skip to content

Instantly share code, notes, and snippets.

@donnaken15

donnaken15/exepath.bat

Last active May 30, 2020
Embed
What would you like to do?
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
You can’t perform that action at this time.