HKLM (the regedit abbrev) is only local to your machine but changing the
other keys will not affect the network! Rather, it's the network system that
will change your keys.

If you want a special file association spread out, you'll have to include it
into the login script to add the missing key. Ask your domain admin or
consult www.ntfaq.com.

Another solution would be to write it when your program runs BUT, if the
user is not admin of his workstation or the policy forbids the users to
change their registries (which it should), then it's back to the login
script.

Concerning the slashes and quotes and command

use this script in your startup (unless it's for Macs of course) (please
correct if im wrong but it works between NT and 95x.

on CheckShellPlatform
  if (the platform = "win32") and (word 1 of the systemversion is "windows")
then
    set the shellcommand to "command.com"
  else
    set the shellcommand to "cmd.exe"
  end if
end CheckShellPlatform

and if there is a space in a name in an NTFS volume you'll have to enclose
the string in quotes like this. I dont remember having problems with the /
or \.

Normally, this does the job:
get "dir c:\"

But here, there is a folder/shared folder with a space in it:

get "dir" && quote & "\\server\share test" & quote
get shell(it)



> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Monte Goulding
> Sent: Monday, February 05, 2001 8:35 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Network Help - more
>
>
>
> Thanks I keep forgetting that. Probably due to the fact that it hasn't
> caused any errors thus far. I'm not sure that it's the only problem though
> because it's been working fine like that for quite some time.
> It's ony when
> the laptop gets onto the network that there's a problem. Does
> HKEY_CLASSES_ROOT work store the same info for every user or is this user
> specific. I'd like to have file tipes registered across all users of the
> machine so is that what HKEY_LOCAL_MACHINE\Software\CLASSES is for?
>
> >
> >
> > You'll also need to change "/" to "\" in your dIcon, dIcon2 and
> > sCom strings.
> > Phil
> >
> > Monte Goulding wrote:
> > >
> > > Hi
> > >
> > > I have a rather obscure problem: (probably one of many but this
> > one has to
> > > do with MC)
> > > - I developed a program that has custom file type for windows
> > > - The program was installed on a laptop running NT while it was on the
> > > network
> > > - When the laptop is not on the network the program works fine
> > > - When the laptop is on the network the following problems occur
> > >  ~ Files can not be seen by the open file dialog (The files
> can be seen
> > > using explorer)
> > >  ~ Problems finding a stack that is another custom file type as
> > a stackfile
> > > ot the standalone
> > > - When the laptop is not on the network the shortcuts
> disapear from the
> > > desktop and start menu but the program works OK if you open it
> > from program
> > > files.
> > >
> > > Question Is there and problem with the following install script
> > >
> > > theF contains the directory of the standalone
> > >
> > >     put theF & "/Trakperformance.exe","1" into dIcon
> > >     put theF & "/Trakadd.ico","0" into dIcon2
> > >     put quote & theF & "/Trakperformance.exe" & quote & "%1" into sCom
> > >     get setRegistry("HKEY_CLASSES_ROOT\.trak\", "Trakperformance")
> > >     get setRegistry("HKEY_CLASSES_ROOT\Trakperformance\",
> > "Tracking Files")
> > >     get
> > setRegistry("HKEY_CLASSES_ROOT\Trakperformance\DefaultIcon\", dIcon)
> > >     get
> > setRegistry("HKEY_CLASSES_ROOT\Trakperformance\shell\open\command\",
> > > sCom)
> > >     get setRegistry("HKEY_CLASSES_ROOT\.trakadd\",
> > "Trakperformance.Addin")
> > >     get setRegistry("HKEY_CLASSES_ROOT\Trakperformance.Addin\",
> > > "Trakperformance Add-in")
> > >     get
> > setRegistry("HKEY_CLASSES_ROOT\Trakperformance.Addin\DefaultIcon\",
> > > dIcon2)
> > >
> > > If there is no problem with this what about if the user logs in
> > as someone
> > > else or logs into a network?  Will metacard still recognise
> > these files or
> > > do the file types need to be regisetered on the network? If so
> > how do I do
> > > it?
> > >
> > > This is a major problem for me so if anyone knows anything it
> > could save my
> > > ass.
> > >
> > > Thanks all
> > >
> > > Monte
> > >
> > > 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.
> >
> > --
> > Phil Davis
> > [EMAIL PROTECTED]
> >
> > 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.
> >
> >
>
>
> 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.
>
>


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.

Reply via email to