realbasic-nug
[Top] [All Lists]

RE: Custom file icons?

To: "'REALbasic NUG'" <realbasic-nug at lists dot realsoftware dot com>
Subject: RE: Custom file icons?
From: "Mark O'Neill" <mark at cutto dot co dot uk>
Date: Thu, 30 Mar 2006 18:19:58 +0100
Delivered-to: realbasic-nug at lists dot realsoftware dot com
Thread-index: AcZThdLbdSN3TkeHR+KqTcGR2FyGoQAlthhA
Hi William, 

| can tell Windows that this file really is 'attached' to my app?

You need to modify the Windows registry.

Create a plain text file and in it put the
following: (between the ===)

========================================

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.ctb]
@="YOURAPPNAME.Project"

[HKEY_CLASSES_ROOT\YOURAPPNAME.Project]
@="Your App Name Project File Description"

[HKEY_CLASSES_ROOT\YOURAPPNAME.Project\DefaultIcon]
@="C:\\Program Files\\YOURAPP.exe,1"

[HKEY_CLASSES_ROOT\YOURAPPNAME.Project\shell]

[HKEY_CLASSES_ROOT\YOURAPPNAME.Project\shell\open]

[HKEY_CLASSES_ROOT\YOURAPPNAME.Project\shell\open\command]
@="\"C:\\Program Files\\YOURAPP.exe\" \"%1\" "

========================================

You'll obviously have to change YOURAPPNAME
(no spaces) to the name of your app and
YOURAPP to the exe that's on disk - along with
the path.

Then, rename the file to .reg and double
click it to enter the data into the registry.

Note the double \\ in the file name - those
are needed to distinguish folders.

I hope that's of some help.

All the best,

Mark.

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.3.3/296 - Release Date: 29/03/2006
 

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>