You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
as this has replaced the default notepad.exe.
[Create new text document" option is also missing from context menu]
can you suggest some steps to get back the default notepad.exe application
The text was updated successfully, but these errors were encountered:
the simplest option:
the plugin has a .bat file where you can uninstall the plugin
you can also find it after you download any version from here: https://github.com/lygstate/NotepadStarter/releases
but to keep things simple, this is the code:
::By using short path, to support place in Unicode Path@echooff::Gain Administrator permissionsetSHOW_SUBWINDOW=0call"%~dps0request-admin.bat""%~dpnxs0"%*call :RetrieveFileTime NotepadStarterTime "%SystemRoot%\NotepadStarter.exe"call :RecoverNotepad"%SystemRoot%"call :RecoverNotepad"%SystemRoot%\System32"call :RecoverNotepad"%SystemRoot%\SysWOW64"del /F /Q "%SystemRoot%\NotepadStarter.exe"cd /d %~dps0..
ifexist"NotepadStarter\.git" (goto skipGitRepository)
del /F /Q NotepadStarterPlugin.dll
:skipGitRepositoryreg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe" /f
reg delete "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe" /f
reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe" /f /reg:64
reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe" /f /reg:32
if"%1"=="uninstall"goto uninstall_direct
rd /s /q NotepadStarter &pause
:uninstall_directrd /s /q NotepadStarter
goto :eof
:RecoverNotepad -Passing the directory have notepad.exe who will be replaced
setlocal@echooncd /d "%~1"ifnotexist notepad.NotepadStarter.exe (goto recoverFile)
ifnotexist notepad.exe (goto recoverFile)
takeown /f notepad.exe
echo y |cacls notepad.exe /Grant Administrators:F
call :RetrieveFileTime CurrentFileTime notepad.exe
if"%NotepadStarterTime%"equ"%CurrentFileTime%" (goto recoverFile)
del /F /Q notepad.NotepadStarter.exe
:recoverFileecho y |move /-Y notepad.NotepadStarter.exe notepad.exe
endlocalgoto :eof
:RetrieveFileTime - Retrieve the file modification time%1 from the the file %2if"%~1"EQU""goto :eofif"%~2"EQU""goto :eofsetlocalfor%%ain ("%~2") doset"FileDate=%%~tza"echo Calculating "%~2" with result:%FileDate%endlocal&set"%~1=%FileDate%"goto :eof
open notepad copy > paste the above code
select: File > save as...
filename: uninstall.bat
change type to: all files (*) and click save.
as this has replaced the default notepad.exe.
[Create new text document" option is also missing from context menu]
can you suggest some steps to get back the default notepad.exe application
The text was updated successfully, but these errors were encountered: