#206985 - 2013-03-27 09:19 PM
Re: The Joy of Windows 8
[Re: NTDOC]
|
Allen
KiX Supporter
Registered: 2003-04-19
Posts: 4548
Loc: USA
|
So I've been carrying on with Windows 8 by installing the Start 8 menu for every new computer I set up. It completely avoided the training that was necessary to get new users up and running. Today, however I got a call that I'm surprised did not happen sooner. Windows 8 by default changes the associations of a number of extensions to use the Metro/Modern apps, rather than the desktop apps. Most notably mailto points to the Mail app rather than Outlook, all the Picture types no longer point to the MS Picture Viewer, and all the media types no longer point to Windows Media Player. My client was like "Everytime I open a picture I can't close it, I can't rotate it, I can only use the task manager to shut it down. Also every time I try to click on an email it wants me to create an account, rather than opening it in Outlook." MS really should be shot for doing this crap on the desktop.
Anyhow... I was looking at the Associate UDF, but I'm not exactly clear on how I would use it. Specifically I need an example to modify the association for mailto to point to Outlook, and maybe one example to change the association for bmp files to use the Windows Photo Viewer.
|
Top
|
|
|
|
#206988 - 2013-03-27 11:03 PM
Re: The Joy of Windows 8
[Re: Allen]
|
Glenn Barnas
KiX Supporter
Registered: 2003-01-28
Posts: 4396
Loc: New Jersey
|
This might need an update for Windows 8. Not that it doesn't work (I call it at least a dozen times when I run my workstation build process) but it may not set/delete the new Metro interface. Apparently, the DELETE option is CRITICAL!! So - Microsoft really thought we needed a new app to put a picture on the screen?
The general form of Associate is Extension, Identifier, Description, App to Open, App to Edit.$Open = '%SystemRoot%\System32\rundll32.exe "%ProgramFiles%\Windows Photo Viewer\PhotoViewer.dll", ImageView_Fullscreen %1'
Associate('.jpg', 'jpegfile', 'JPEG Image', $Open, 'mspaint.exe %1') should work. DO NOT change the extension or short-name as these are already defined in Win-8. You'll want to modify the current settings. Also, since the command now includes a comma AND quotes, you'll need to use the $Open to insure that the quotes and comma are treated as a single parameter. You don't need the last arg if you don't want a Right-Click/Edit option, or you can set it to some other editor.
You can find this info in the registry.. in this example, search HK_Classes_Root for the extension. In the OpenWithProgids key, find the REG_SZ string (will be empty!) - this is the name of the key to locate in the same hive. It's "jpegfile" in this case. Expand "jpegfile", then "shell", then "open" and find "command". The default value contains the executable command to launch the associated app. If you defined an Edit association, then an "Edit" section similar to "open" will exist.
Please grab the latest UDF version from my web site. Let me know how this works for you.
Glenn
_________________________
Actually I am a Rocket Scientist!
|
Top
|
|
|
|
#207061 - 2013-04-05 07:00 PM
Re: The Joy of Windows 8
[Re: Lonkero]
|
Allen
KiX Supporter
Registered: 2003-04-19
Posts: 4548
Loc: USA
|
I haven't had a lot of time to dig into this, but I did find another association script/post that worked fine with Win 7, but no longer works with Win 8. This may end up being a complete redo.
http://superuser.com/questions/419163/po...y-employing-fty
|
Top
|
|
|
|
#207063 - 2013-04-05 08:37 PM
Re: The Joy of Windows 8
[Re: ShaneEP]
|
ShaneEP
MM club member
Registered: 2002-11-29
Posts: 2125
Loc: Tulsa, OK
|
|
Top
|
|
|
|
Moderator: Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart
|
1 registered
(Allen)
and 286 anonymous users online.
|
|
|