Advertisement
Guest User

Untitled

a guest
Oct 6th, 2017
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 1.28 KB | None | 0 0
  1. rem HKCR\.txt2
  2. reg add "HKCR\.txt2" /ve /d "txtfile"
  3. reg add "HKCR\.txt2" /v "Content Type" /d "text/plain"
  4. reg add "HKCR\.txt2" /v "PerceivedType" /d text
  5. reg add "HKCR\.txt2\PersistentHandler" /ve /d "{5e941d80-bf96-11cd-b579-08002b30bfeb}"
  6. reg add "HKCR\.txt2\ShellNew" /v ItemName /t REG_EXPAND_SZ /d "%SystemRoot%\system32\notepad.exe,-470"
  7. reg add "HKCR\.txt2\ShellNew" /v NullFile
  8.  
  9. rem HKCR\txtfile2
  10. reg add "HKCR\txtfile2" /ve /d "Text Document"
  11. reg add "HKCR\txtfile2" /v EditFlags /t REG_DWORD /d 65536
  12. reg add "HKCR\txtfile2" /v FriendlyTypeName /t REG_EXPAND_SZ /d "@%SystemRoot%\system32\notepad.exe,-469"
  13. reg add "HKCR\txtfile2\DefaultIcon" /ve /t REG_EXPAND_SZ  /d "%SystemRoot%\system32\imageres.dll,-102"
  14. reg add "HKCR\txtfile2\shell\open\command" /ve /t REG_EXPAND_SZ /d "%SystemRoot%\system32\NOTEPAD.EXE %1"  
  15. reg add "HKCR\txtfile2\shell\print\command" /ve /t REG_EXPAND_SZ /d "%SystemRoot%\system32\NOTEPAD.EXE /p %1"
  16.  
  17. reg add "HKCR\txtfile2\shell\printto\command" /ve /t REG_EXPAND_SZ /d %SystemRoot%\system32\notepad.exe /pt "%1" "%2" "%3" "%4"
  18. reg add "HKCR\txtfile2\shellex\{8895b1c6-b41f-4c1c-a562-0d564250836f}" /ve /d "{1531d583-8375-4d3f-b5fb-d23bbd169f22}"
  19.  
  20.  
  21.  
  22.  
  23. rem [-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.TXT\UserChoice]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement