Making a file association
[1/3] from: coussement:c:js:mil:be at: 28-Jun-2001 10:31
Hi list:
I need to make some file association within a WinNT 4.0 Env. - *.ctl with a
script I wrote -
Because the installation of REBOL allows to associate the *.r files with
REBOL, I've got a look into the system object.
I found there a function *install-it*, which passes the user choice
concerning this association to the function *do-install* of a *install-obj*
(line 23692 for those interrested)
But I could not find anymore traces of this *install-obj*:
>> source install-obj
install-obj: undefined
which does not solve my problem :-[
Where can I access this *install-obj* ? Or which API do I have to use to
make the required association ? Any idea ?
Thanks for answering ;-)
chr==
[2/3] from: mario:cassani:icl at: 28-Jun-2001 10:28
Hi chr== (or whatever is your name),
> I need to make some file association within a WinNT 4.0 Env.
> - *.ctl with a
> script I wrote -
>
> Because the installation of REBOL allows to associate the *.r
> files with
> REBOL, I've got a look into the system object.
Give up teasing the installation procedures: NT uses
the registry to make files associations.
If you don't like handling with that big mess (registry)
I suggest you this procedure:
1 - Open Explorer (WINKEY+E, usually)
2 - In the menu: View->Options...
3 - Select the "File Types" tab
4 - Click the "New Type" button
5 - Insert description and ".ctl" as "Associated extension" (no quotes)
6 - Click the "New" button
At this point you can face two possible things:
1 - Requester to select the associated program -> put path to the
application
2 - Dialog telling that .ctl is associated to something other (this means
you have VirusBasic installed) ->
-> Read the given description with your heart (to remember), close and
look for the given file type description
-> Open that type, check if is using .ctl and click the "New" button
(point 6) -> Requester to select the associated program ->
-> put path to the application -> The result will be that you right
click on a .ctl file and you can run it with your application.
3 - Format your harddisk and install another operating system ;'P
Best regards
Mario
[3/3] from: coussement:c:js:mil:be at: 2-Jul-2001 9:37
Mario:
Thanks for answering.
sorry for the confusion... I'm aware of the procedure you described.
What I need is the mean to execute it from a REBOL script, so I could append
it to the installation procedure of the utility I wrote.
Any idea ?
chr== (aka Christophe)