Win8.1 file class registration problem

4 views
Skip to first unread message

Harry Potter

unread,
Sep 10, 2014, 8:06:48 PM9/10/14
to
I recently got a new Win8.1 PC and am having trouble registering files of a type myself. The following is what I have for .cfg:

------------------------------------
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.cfg]
@="cfgfile"
"PerceivedType"="text"

[HKEY_CLASSES_ROOT\.cfg\ShellNew]
"command"="c:\\myprgs\\win32\\picker\\tmpcreatwin.exe \"%1\""

-----------------------------------
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\cfgfile]
@="cc65 config file"

[HKEY_CLASSES_ROOT\cfgfile\DefaultIcon]
@="C:\\Icons\\DISK35.ico"

[HKEY_CLASSES_ROOT\cfgfile\shell]

[HKEY_CLASSES_ROOT\cfgfile\shell\open]
@="Open in &Notepad"

[HKEY_CLASSES_ROOT\cfgfile\shell\open\command]
@="\"%SystemRoot%\\System32\\notepad.exe\" \"%1\""

-----------------------------------
The problem is that I can't seem to open the file as, when I do so, a dialog box appears saying that I may not have access privileges to the file. The only thing that seems to be missing is the PerceivedType key in the extension key. I want the full functionality but not yet. For now, I just want to use and do operations on these files. Can anybody help me out?
Reply all
Reply to author
Forward
0 new messages