Tech Support Guy banner
Status
Not open for further replies.

I need help creating a registry file. Detailed question, should be easy to answer.

1K views 3 replies 2 participants last post by  Gombot 
#1 ·
I want to create a registry key for a webcal link so that it can open external programs from IE or Firefox. I tried creating a registry file following these links:
http://msdn2.microsoft.com/en-us/library/aa767914.aspx
http://blogs.msdn.com/noahc/archive/2006/10/19/register-a-custom-url-protocol-handler.aspx

When I created the file and named it webcal.reg, I get the error message: The specified file is not a registry script. You can only import binary registry files from within the registry editor.
this is the reg file I used: named webcal.reg
--

[HKEY_CLASSES_ROOT]

[webcal]

(Default) = "URL:Webcal Protocol Handler"

URL Protocol = ""

[DefaultIcon]

(Default) = "sunbird.exe”

[shell]

[open]

[command]

(Default) = "E:\Program Files\Mozilla Sunbird\sunbird.exe "%1""

--

and I created a batch file
--
@echo off
regedit /s webcal.reg
pause
--
batch file wouldnt have worked anyways.

So I got this far but now I am stuck.
 
See less See more
#2 ·
You may be receiving that message because you aren't starting the file with something like:

"Windows Registry Editor Version 5.00" (without the quotes)

My understanding is that it's a requirement for the first line of a registry script.

The general format of the rest of your script is also a little different than ones I write, but I can't say whether that's a problem or not.
 
Status
Not open for further replies.
You have insufficient privileges to reply here.
Top