Go Back   Science Forums > Help and Advice > Tutorials and How To's
Reply
 
LinkBack Thread Tools
Old 08-28-2008   #1 (permalink)
alexander's Avatar
Dedicated Smart-ass

Senior Moderator
Gallery Curator
Dev Team Member

Location:
Just before 0xAA55
 
alexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond repute
Send a message via AIM to alexander
 



Not Ranked  0 score     
Windows File Association Tutorial

Win admin by day, i have to deal with this crap sometimes, so i wrote up a, what i believe to be a neat tutorial, though its not the type of stuff i would post on my website, it would fit fine here

This works as well for Terminal Server (and i wrote this for that reason) as it does on your regular home system, commands are the same, principals are too, and so forth.

File association on Windows Server or other operating system is a global setting, thus has to be approached very carefully and thoughtfully.

There are two utilities to assist you with this (both command line):
assoc and ftype

assoc - associates an extension to a association defined in ftype
ftype - associates an ftype name to a program

Why two utilities? Simple, one ftype can point to many associated extensions, DWF viewer, for example points to both a .dwf file and .dwfx, thus you will likely have more associations then file types.

How to facilitate associating a file:

First you want to look at what kind of values, the extension is associated with. Open up command prompt and run assoc (no arguments). You are now presented with the list of all of the extensions your computer/server knows. Scroll up or down to find the one in question, or lack thereof.

If you find the extension, note where it points.
ex: .txt=TextFile

Now run ftype (no arguments); this will list the association of the second part of the previous command, to the actual program. Scroll up/down to find your file type association.
ex: TextFile=WinWord.exe "%1"

Now the fun stuff:
If you want to disassociate an extension, simply run assoc with the extension equal to nothing
ex: assoc .txt=

if you want to change the associated program, run ftype with the already named association and point it to a different application, note follow the program with a "%1" which will, upon execution of the command, insert the first argument (aka the file name) and append it to the end of the command.

ex: ftype TextFile="C:\Program Files\Crazy Text Editor\editor.exe" "%1"

If you want to create a new extension, or change another one, you can now point to the program association
ex: assoc .text=TextFile

Any file that ends with .text, and .txt will now be opened in the "Crazy Text Editor"

Note: BE EXTREMELY CAREFUL WITH THIS, YOU CAN REALLY MESS UP YOUR SYSTEM!!!


----------------
Microsoft, the leader in using innovative tactics to promote irksome experience, coupled with antiquated technology that's held together by a pyramid of makeshift afterthoughts.

Apple, the leader in using irksome tactics to promote innovative experience, coupled with an antiquated core that's enhanced by state-of-the-art afterthoughts.

Linux, the leader in not using any tactics to promote user-defined experience, coupled with state-of-the-art core enhanced by innovative afterthoughts.


Last edited by alexander; 08-28-2008 at 05:29 AM..
Reply With Quote
Old 08-28-2008   #2 (permalink)
DougF's Avatar
Hypo Contributer

Silver Subscription
Sponsor

Location:
Dark Side of the Moon
 
DougF has a reputation beyond reputeDougF has a reputation beyond reputeDougF has a reputation beyond reputeDougF has a reputation beyond reputeDougF has a reputation beyond reputeDougF has a reputation beyond reputeDougF has a reputation beyond reputeDougF has a reputation beyond repute
 



Not Ranked  0 score     
Lightbulb Re: Windows File Association Tutorial

Thanks for the information alexander,
I really want to understand the inter most workings of my computer.


----------------
"The world is a dangerous place, not because of those who do evil, but because of those who do nothing." Albert Einstein

MySpace.com/DF34788

.
Reply With Quote
Old 08-28-2008   #3 (permalink)
alexander's Avatar
Dedicated Smart-ass

Senior Moderator
Gallery Curator
Dev Team Member

Location:
Just before 0xAA55
 
alexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond repute
Send a message via AIM to alexander
 



Not Ranked  0 score     
Re: Windows File Association Tutorial

Lol then switch to Linux, because you will understand the inner workings a lot more, if you deal with them for a while

when you start reading up on paging algorithms, on file systems, on memory management, on preemptive algorithms, oh, also subscribe to the Linux Journal and read their df -u section, and research anything you dont understand in it (its all about upcoming changes and projects within the linux kernel)


----------------
Microsoft, the leader in using innovative tactics to promote irksome experience, coupled with antiquated technology that's held together by a pyramid of makeshift afterthoughts.

Apple, the leader in using irksome tactics to promote innovative experience, coupled with an antiquated core that's enhanced by state-of-the-art afterthoughts.

Linux, the leader in not using any tactics to promote user-defined experience, coupled with state-of-the-art core enhanced by innovative afterthoughts.

Reply With Quote
Old 08-28-2008   #4 (permalink)
Buffy's Avatar
Resident Slayer

Administrator

Location:
Sunnydale, CA
 
Buffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond repute
 



Not Ranked  0 score     
Re: Windows File Association Tutorial

Quote:
Originally Posted by alexander View Post
Note: BE EXTREMELY CAREFUL WITH THIS, YOU CAN REALLY MESS UP YOUR SYSTEM!!!
Uh, yup!

...which is really why I'd tell anyone who did not have some significant OS expertise to forget everything that alex just said, and just go to Windows Explorer and select Tools -> Folder Options -> File Types and then use the interactive interface, which although not terribly intuitive, does all the same stuff.

Just don't delete anything or change anything without double checking what the existing associations are!

Beware of programmers who carry screwdrivers,
Buffy


----------------
"If you do not agree with anything I say, I'll not only retract it, but deny under oath that I ever said it!"
__________________________________________________ ______________-- Tom Lehrer

"No Robbie, not Europe!"


Forum Administrator
Hypography Science Forums - Science for Boys and Girls! Its not for nothing that we hang out here.
Reply With Quote
Old 08-29-2008   #5 (permalink)
alexander's Avatar
Dedicated Smart-ass

Senior Moderator
Gallery Curator
Dev Team Member

Location:
Just before 0xAA55
 
alexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond repute
Send a message via AIM to alexander
 



Not Ranked  0 score     
Re: Windows File Association Tutorial


Quote:
Windows Explorer and select Tools -> Folder Options -> File Types and then use the interactive interface, which although not terribly intuitive, does all the same stuff.
it does, until you reach a terminal server and do a ftype to find out that pdf points to f0000e3 and then you go, oh so that's why the file association was not working for everyone.... oookay then... lets me fix it the right way


----------------
Microsoft, the leader in using innovative tactics to promote irksome experience, coupled with antiquated technology that's held together by a pyramid of makeshift afterthoughts.

Apple, the leader in using irksome tactics to promote innovative experience, coupled with an antiquated core that's enhanced by state-of-the-art afterthoughts.

Linux, the leader in not using any tactics to promote user-defined experience, coupled with state-of-the-art core enhanced by innovative afterthoughts.

Reply With Quote
Reply

Bookmarks

Tags
assoc, association, file, ftype, server, tutorial, windows


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Does mankind have a positive association to the environment ? clapstyx Environmental Studies 4 04-02-2008 02:12 AM
Problem creating file Mercedes Benzene Computer Science and Technology 11 01-21-2008 10:02 AM
Fullbright Association Tarantism Watercooler 3 06-11-2006 02:49 PM
PHP Tutorial AGThePoet Computer Science and Technology 3 12-24-2003 07:14 PM

» Advertisement
» Current Poll
Who's the sexiest man alive? Johnny Depp or Robert Pattinson?
Johnny Depp - 30.00%
3 Votes
Robert Pattinson - 0%
0 Votes
Someone else (please specify) - 40.00%
4 Votes
I'm too macho to think a guy is sexy - 30.00%
3 Votes
Total Votes: 10
You may not vote on this poll.


All times are GMT -8. The time now is 03:38 PM.

Hypography?

Hypography [n.]: A combination of "hyperlink" and "bibliography" - ie, a list of links to electronic documents. Comparable to discography and bibliography, but not cartography.

We have been online since May 2000, and aim to be the best place to find and share science-related content of all kinds.

Share the love!

Please add more science to your life. Use our RSS feeds on your blog, your portal, or your favorite feedreader!


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
Copyright © 2000-2009 Hypography
Part of the Hypography - Science for Everyone Network