@echo off :::::::: Parameters :: Paths to SendTo and Start Menu for /f "tokens=3*" %%G in ('REG QUERY "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "Start Menu" ^|Find "REG_"') do call set _startmenu=%%H for /f "tokens=2*" %%G in ('REG QUERY "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "SendTo" ^|Find "REG_"') do call set _sendto=%%H :::::::: Uninstall cls echo This script will allow you to uninstall Notepad++ Portable from your SendTo echo Menu and your Start Menu. echo. choice /M Continue if errorlevel 2 goto :eof echo. echo Removing SendTo shortcut... del /q "%_sendto%\Notepad++Portable.lnk">NUL echo Removing Start Menu shortcut... del /q "%_startmenu%\Notepad++Portable.lnk">NUL echo Done. pause