Hi Peter
Firstly I can't see why it isn't easier to have a copy of the player on each
PC (what does 50 students opening different instances of the same .exe file
at the same time do to your network?)but I wont go into that.
get setRegistry("HKEY_CLASSES_ROOT\.mc\", "MetaCard") - tells the system
that .mc files are for MetaCard
get setRegistry("HKEY_CLASSES_ROOT\MetaCard\", "MetaCard Stacks") - tells
the system that these files are MetaCard Stacks
get setRegistry("HKEY_CLASSES_ROOT\MetaCard\DefaultIcon\", "the location of
your player\mc.exe,1") - tells the system that the icon for .mc files is is
icon 1 of mc.exe (mc.exe has only 2 icons icon 0 the the mc.exe icon and
icon 1 the stack icon)
get setRegistry("HKEY_CLASSES_ROOT\MetaCard\Shell\Command\Open\", ""the
location of your player\mc.exe"%1") - tells the system that when a .mc file
is clicked on then to open the player and the stack clicked on which
replaces %1 in the command
These are off the top of my head so check the registry under
HKEY_CLASSES_ROOT\MetaCard to be sure. The other thing that you should be
aware of is that if you run these things on the PC you develop on then it
will change all your settings. You will probably need to change these back
manually.
Lastly If instead of using the mc.exe and the tools stack as a player why
not build a standalone with these exact same files in it. Edit the icons if
you want with an icon editor. Then you can save stacks that you want
students to use as "*.reid" files. Name the standalone as PeterReid.exe and
set the registry entries the same way. This way you have no interference
with MetaCard programs installed on any ot these workstations.
Hope this helps
PS search the registry of a few computers before making up your own file
class
Best regards
Monte
>From: Peter Reid <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: MC File Association Registry Entries
>Date: Sat, 18 Nov 2000 09:26:38 +0000
>
>>Peter Reid wrote/ schreef:
>>> Please can anyone tell me how to set up the Registry under Windows
>>> from within MetaCard so that the system knows about *.mc files, how
>>> to open them and what icons to use. I plan to produce a standalone
>>> written in MetaCard that sets up the association for the user.
>>get setRegistry("HKEY_CLASSES_ROOT\.mc\", "MetaCard")
>>if it is false then
>> answer error "An error occured while setting the registry:" & return &
>>the
>>result
>>end if
>
>Thanks Sjoerd for the above response. I am familiar with the above
>but don't see how this tells the system where to find mc.exe. In the
>situation I described, the MetaCard Player (mc.exe + mctools.mc) is
>never actually "installed" on the student workstations, but run
>directly from a location on a shared fileserver. So the student
>workstation will not have any record of which *.exe to run when a
>*.mc file is double-clicked, nor will it know what icon to display
>for *.mc files.
>
>So I need a means of setting up the student workstation such that
>*.mc files are opened and run using something like
>"\\learn\chemcourse\resources\metacard\mc.exe" where "\\learn" is a
>shared fileserver location. Also, how would I ensure the *.mc files
>had the right icon (I'm happy for them to be the default MetaCard
>document icon).
>
>Also, will the above registry setting be for all users of the
>workstation of just the individual user logged in at the time (it is
>an NT 4 workstation with user profiles)? It is important that such
>settings are student profile specific, since only certain courses
>will be using MetaCard.
>
>Cheers
>Peter
>--
>--------------------------------------------------------
>Peter Reid
>Reid-IT Limited, Loughborough, Leics., UK
>Tel: +44 (0)1509 268843 Fax: +44 (0)870 052 7576
>E-mail: [EMAIL PROTECTED]
>Web: http://www.reidit.co.uk
>
>Archives: http://www.mail-archive.com/[email protected]/
>Info: http://www.xworlds.com/metacard/mailinglist.htm
>Please send bug reports to <[EMAIL PROTECTED]>, not this list.
>
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Share information about yourself, create your own public profile at
http://profiles.msn.com.
Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.