In both cases,
Notice that there are differences in the directory names and in the doubling of backslashes.
REGEDIT4 [HKEY_CLASSES_ROOT\txtfile] @="Text Document" "EditFlags"=hex:00,00,01,00 [HKEY_CLASSES_ROOT\txtfile\DefaultIcon] @="C:\\WINDOWS\\SYSTEM\\shell32.dll,-152" [HKEY_CLASSES_ROOT\txtfile\shell] [HKEY_CLASSES_ROOT\txtfile\shell\open] [HKEY_CLASSES_ROOT\txtfile\shell\open\command] @="c:\\windows\\notepad.exe %1" [HKEY_CLASSES_ROOT\txtfile\shell\print] [HKEY_CLASSES_ROOT\txtfile\shell\print\command] @="C:\\WINDOWS\\NOTEPAD.EXE /p %1"
REGEDIT4 [HKEY_CLASSES_ROOT\txtfile] @="Text Document" "EditFlags"=hex:00,00,01,00 [HKEY_CLASSES_ROOT\txtfile\DefaultIcon] @=hex(2):25,53,79,73,74,65,6d,52,6f,6f,74,25,5c,73,79,73,74,65,6d,33,32,5c,73,\ 68,65,6c,6c,33,32,2e,64,6c,6c,2c,2d,31,35,32,00 [HKEY_CLASSES_ROOT\txtfile\shell] [HKEY_CLASSES_ROOT\txtfile\shell\open] [HKEY_CLASSES_ROOT\txtfile\shell\open\command] @=hex(2):25,53,79,73,74,65,6d,52,6f,6f,74,25,5c,73,79,73,74,65,6d,33,32,5c,4e,\ 4f,54,45,50,41,44,2e,45,58,45,20,25,31,00 [HKEY_CLASSES_ROOT\txtfile\shell\print] [HKEY_CLASSES_ROOT\txtfile\shell\print\command] @=hex(2):25,53,79,73,74,65,6d,52,6f,6f,74,25,5c,73,79,73,74,65,6d,33,32,5c,4e,\ 4f,54,45,50,41,44,2e,45,58,45,20,2f,70,20,25,31,00
HKEY_CLASSES_ROOT\txtfile Default="Text Document" "EditFlags"=hex:00,00,01,00 HKEY_CLASSES_ROOT\txtfile\DefaultIcon Default="%SystemRoot%\system32\shell32.dll,-152" HKEY_CLASSES_ROOT\txtfile\shell HKEY_CLASSES_ROOT\txtfile\shell\open HKEY_CLASSES_ROOT\txtfile\shell\open\command Default="%SystemRoot%\system32\NOTEPAD.EXE %1" HKEY_CLASSES_ROOT\txtfile\shell\print HKEY_CLASSES_ROOT\txtfile\shell\print\command Default="%SystemRoot%\system32\NOTEPAD.EXE /p %1"
HKCR --> HKEY_CLASSES_ROOT
HKCR\txtfile Default="Text Document" "EditFlags"=hex:00,00,01,00 HKCR\txtfile\DefaultIcon Default="%SystemRoot%\system32\shell32.dll,-152" HKCR\txtfile\shell HKCR\txtfile\shell\open HKCR\txtfile\shell\open\command Default="%SystemRoot%\system32\NOTEPAD.EXE %1" HKCR\txtfile\shell\print HKCR\txtfile\shell\print\command Default="%SystemRoot%\system32\NOTEPAD.EXE /p %1"