ShellNew PB Template (New Menu)

Everything else that doesn't fall into one of the other PB categories.
eJan
Enthusiast
Enthusiast
Posts: 366
Joined: Sun May 21, 2006 11:22 pm
Location: Sankt Veit am Flaum

ShellNew PB Template (New Menu)

Post by eJan »

I need some advice how to create: New PB Template - right click menu. I have tried Using TweakUI and methods described here: http://windowsxp.mvps.org/shellnewadd.htm , but none of them doesn't create 'New PB Template'. Please help!
Image
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"=""
Sparkie
PureBatMan Forever
PureBatMan Forever
Posts: 2307
Joined: Tue Feb 10, 2004 3:07 am
Location: Ohio, USA

Post by Sparkie »

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"
What goes around comes around.

PB 5.21 LTS (x86) - Windows 8.1
..::Origin::..
Enthusiast
Enthusiast
Posts: 125
Joined: Sat Jun 17, 2006 3:15 pm

Post by ..::Origin::.. »

eJan
Enthusiast
Enthusiast
Posts: 366
Joined: Sun May 21, 2006 11:22 pm
Location: Sankt Veit am Flaum

Post by eJan »

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"
Originaly it was only:

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.pb] 
@="pb_auto_file"
after I've added

Code: Select all

[HKEY_CLASSES_ROOT\.pb\ShellNew] 
"FileName"="Template.pb" 
"NullFile"=""
and PureBasic class

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""
Sparkie
PureBatMan Forever
PureBatMan Forever
Posts: 2307
Joined: Tue Feb 10, 2004 3:07 am
Location: Ohio, USA

Post by Sparkie »

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\""
What goes around comes around.

PB 5.21 LTS (x86) - Windows 8.1
eJan
Enthusiast
Enthusiast
Posts: 366
Joined: Sun May 21, 2006 11:22 pm
Location: Sankt Veit am Flaum

Post by eJan »

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""
Thanks a million Sparkie! :D
NullFile or Template Filename should be added to make it work.

Code: Select all

[HKEY_CLASSES_ROOT\.pb\ShellNew]
"NullFile"=""
Image
Post Reply