CF can't do this. Remember, CF has NO programmatic control over the end user. You're gonna have to code up something else in a different language - VB seems the best choice (I'd go with a client-side ActiveX control). You'll need to jump through some hoops or be prepared for IE to scream at the user about security (you will be changing the registry on a client's machine)
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of phumes1 Sent: Monday, May 06, 2002 1:10 PM To: [EMAIL PROTECTED] Subject: Re: Adding MIME types Hi, Presently I have a .bat file which runs to add mime types into the registry. I have included my .reg file below. Is there a way to have CF add these mimetypes rather than have approximately 50-100 users run this batch file on their PCs? addmimes.bat --------------------- @echo off reg import mimetypes.reg mimetypes.reg --------------------- Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\.dat] @="UltraEdit.dat" "Content Type"="text/dat" "Perceived Type"="text" [HKEY_CLASSES_ROOT\.dat\PersistentHandler] @="{eec97550-47a9-11cf-b952-00aa0051fe20}" [HKEY_CLASSES_ROOT\MIME\Database\Content Type\text/dat] "Extension"=".dat" [HKEY_CLASSES_ROOT\UltraEdit.dat] @="Text Document" "Old Default"="DatObject" [HKEY_CLASSES_ROOT\UltraEdit.dat\shell] [HKEY_CLASSES_ROOT\UltraEdit.dat\shell\open] [HKEY_CLASSES_ROOT\UltraEdit.dat\shell\open\command] @="\"C:\\Program Files\\UltraEdit\\UEDIT32.EXE\" \"%1\"" [HKEY_CLASSES_ROOT\UltraEdit.dat\shell\open\ddeexec] @="[open(\"%1\")]" [HKEY_CLASSES_ROOT\UltraEdit.dat\shell\open\ddeexec\Application] @="UEDIT32" [HKEY_CLASSES_ROOT\UltraEdit.dat\shell\open\ddeexec\topic] @="System" [HKEY_CLASSES_ROOT\UltraEdit.dat\shell\print] [HKEY_CLASSES_ROOT\UltraEdit.dat\shell\print\command] @="\"C:\\Program Files\\UltraEdit\\UEDIT32.EXE\" /p \"%1\"" [HKEY_CLASSES_ROOT\UltraEdit.dat\shell\print\ddeexec] @="[print(\"%1\")]" [HKEY_CLASSES_ROOT\UltraEdit.dat\shell\print\ddeexec\Application] @="UEDIT32" [HKEY_CLASSES_ROOT\UltraEdit.dat\shell\print\ddeexec\topic] @="System" +----------------------------------------------------------------------- ------------+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] +----------------------------------------------------------------------- -------------+ ------------------------------------------------------------------------ - This email server is running an evaluation copy of the MailShield anti- spam software. Please contact your email administrator if you have any questions about this message. MailShield product info: www.mailshield.com ----------------------------------------------- To post, send email to [EMAIL PROTECTED] To subscribe / unsubscribe: http://www.dfwcfug.org ------------------------------------------------------------------------- This email server is running an evaluation copy of the MailShield anti- spam software. Please contact your email administrator if you have any questions about this message. MailShield product info: www.mailshield.com ----------------------------------------------- To post, send email to [EMAIL PROTECTED] To subscribe / unsubscribe: http://www.dfwcfug.org
