Reg export: ('Template.pb' is at %Userprofile%\Templates)
Code: Select all
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.pb\ShellNew]
"FileName"="Template.pb"
"NullFile"=""Code: Select all
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.pb\ShellNew]
"FileName"="Template.pb"
"NullFile"="" 
 Code: Select all
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.pb]
@="pb_auto_file"
[HKEY_CLASSES_ROOT\.pb\ShellNew]
@=""
"FileName"="C:\\Documents and Settings\\Owner\\Templates\\Template.pb"

Originaly it was only:Sparkie wrote:Can I see an Reg export on your HKEY_CLASSES_ROOT\.pb
Here's what I have...Code: Select all
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\.pb] @="pb_auto_file" [HKEY_CLASSES_ROOT\.pb\ShellNew] @="" "FileName"="C:\\Documents and Settings\\Owner\\Templates\\Template.pb"
Code: Select all
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.pb] 
@="pb_auto_file"Code: Select all
[HKEY_CLASSES_ROOT\.pb\ShellNew] 
"FileName"="Template.pb" 
"NullFile"=""Code: Select all
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Applications\PureBasic.exe]
[HKEY_CLASSES_ROOT\Applications\PureBasic.exe\shell]
@=""
[HKEY_CLASSES_ROOT\Applications\PureBasic.exe\shell\open]
[HKEY_CLASSES_ROOT\Applications\PureBasic.exe\shell\open\command]
@=""C:\\Program Files\\PureBasic\\PureBasic.exe" "%1""Code: Select all
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\pb_auto_file]
@="PureBasic Sourcecode"
"EditFlags"=dword:00000000
"BrowserFlags"=dword:00000008
[HKEY_CLASSES_ROOT\pb_auto_file\Shell]
@=""
[HKEY_CLASSES_ROOT\pb_auto_file\Shell\Open]
[HKEY_CLASSES_ROOT\pb_auto_file\Shell\Open\Command]
@="C:\\PureBasic400\\PureBasic\\Purebasic.exe \"%1\""
Thanks a million Sparkie!Sparkie wrote:I had to add a Shell > Open > Command key in order to get the template to appear in the New menu on my Win XP.
Try this for HKEY_CLASSES_ROOT\pb_auto_file. Just make sure to change the path C:\\PureBasic400\\PureBasic\\Purebasic.exe to your correct path.Code: Select all
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\pb_auto_file] @="PureBasic Sourcecode" "EditFlags"=dword:00000000 "BrowserFlags"=dword:00000008 [HKEY_CLASSES_ROOT\pb_auto_file\Shell] @="" [HKEY_CLASSES_ROOT\pb_auto_file\Shell\Open] [HKEY_CLASSES_ROOT\pb_auto_file\Shell\Open\Command] @="C:\\PureBasic400\\PureBasic\\Purebasic.exe "%1""
 
 Code: Select all
[HKEY_CLASSES_ROOT\.pb\ShellNew]
"NullFile"=""