Solved

image (.jpg, .gif, .png) ftype/assoc from the command line

Posted on 2004-03-24
4
1,007 Views
Last Modified: 2012-06-27

After a full install of Microsoft Office 2000 (sr1 sp3), jpg's, gif's and png's open with
Microsoft Photo editor, where as before, they opened with Internet Explorer.

(MS Photo Editor is a crap successor to Kodak Imager and dosn't open photos half the time)

I tried to set things as they were before with this command:
 ftype jpegfile="C:\Program Files\Internet Explorer\iexplore.exe" -nohome
but it still defaults to Microsoft Photo editor.

The current associatons are like so:
.jpg=jpegfile
.gif=giffile
.png=pngfile

At the console I could:
assoc .jpg=htmlfile
assoc .gif=htmlfile
assoc .png=htmlfile

and they would open with IE, BUT (this is the annoying thing) the
.jpg's, .gif's and png's loose their distinctive icons which distinguish them from each other.
(users can't distinguish .gif's from .jpg's... boo hoo)

I need to do this from the command line so I can script it, so the GUI is out

ideas?
0
Comment
Question by:Marketing_Insists
  • 2
4 Comments
 
LVL 44

Expert Comment

by:CrazyOne
ID: 10671838
Why not right click on one of the files selcect Open With slecet the IE make sure the box at the bottom marked as "As always open" is checked

Not do it with all the files you listed.
0
 

Author Comment

by:Marketing_Insists
ID: 10673545


<southern_drawl>
  Right click and Open with?
  'Round these part's we call that using the GUI, and that mister is just the devils work...THE DEVILS-WORK
</southern_drawl>

 ;-)

Sorry, Crazy.  I need to script this sucker for users at the next login, so the GUI is out
0
 
LVL 15

Accepted Solution

by:
sr75 earned 125 total points
ID: 10674094
well to elaborate on Crazy_ones Idea and your needs -

Reg Hack it

Copy the registry keys for these extensions (If I were on a windows box, I would tell you)

then use a batch file (so you don't have to use the gui and can make them Login Scripts)

regedit /s filename

This will import the key into their registry.  Of course you will first have to use the GUI on the other computer to export the registry key.
Its quick, easy, and for the most part you do not get the black box (unless its SLOW)
0
 

Author Comment

by:Marketing_Insists
ID: 10699206
Regedit /s.  It worked well.
Thanks


Also, I found a tool in the Resource Kit called Associate.exe which is a bit more roubst than the native ftype.exe/assoc.exe commands and was able to force desired associations.

0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Application Deployment 2 264
Registry Error Stop 0X0000051 3 2,833
Windows WEb Server sp2 13 520
Active Directory Migration from windows server 2003 to Windows Server 2012R 4 663
NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
This article shows the method of using the Resultant Set of Policy Tool to locate Group Policy that applies a particular setting.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question