Home > Articles > Home & Office Computing > Microsoft Windows Desktop

This chapter is from the book

This chapter is from the book

Working with Existing File Types

In this section, you’ll learn how to work with Windows XP’s existing file types. I’ll show you how to change the file type description, modify the file type’s actions, associate an extension with another file type, and disassociate a file type and an extension.

Figure 3.4

Figure 3.4 The File Types tab offers a front-end for working with Windows XP’s registered file types.

Editing a File Type

To make changes to an existing file type, follow these steps:

  1. Open the Folder Options dialog box and display the File Types tab, as described earlier.

  2. Use the Registered File Types list to select the file type you want to work with.

  3. Click Advanced. The Edit File Type dialog box appears. Figure 3.5 shows the Edit File Type dialog box for the Text Document type.

  4. The text box at the top holds the description of the file type, which you can edit. This description appears in the Registered File Types list and in the New menu (right-click a folder and then click New).

  5. You can also work with the following controls:

  6. Change Icon

    Click this button to display the Change Icon dialog box. Use this dialog box to select a new icon for the file type.

    Actions

    This list shows the actions defined for the file type. I discuss file type actions in more detail in the next section.

    Confirm Open After Download

    When this check box is activated and you attempt to download a file from the World Wide Web, Internet Explorer displays the File Download dialog box that asks whether you want to save or open the downloaded file (see Figure 3.6). Otherwise, Internet Explorer just opens the file using its associated application. Here are two points to bear in mind:

    • Despite the name of this check box, Internet Explorer displays the File Download dialog box before you download the file.

    • For many file types, the File Download dialog box includes a check box named Always Ask Before Opening This Type of File. Deactivating this check box is the same thing as deactivating the Confirm Open After Download check box.

    Always Show Extension

    If you activate this check box, Windows XP shows this file type's extension even if you hide extensions globally.

    Browse in Same Window

    When this check box is activated, the file type opens within Internet Explorer instead of its associated application. This applies only to Microsoft Office file types that are capable of being displayed within Internet Explorer.


  7. Click OK to return to the File Types tab.

  8. Click Close.

Figure 3.5

Figure 3.5 Use the Edit File Type dialog box to make changes to an existing file type.

Figure 3.6

Figure 3.6 If the Confirm Open After Download check box is activated, Internet Explorer displays this dialog box.

Working with File Type Actions

In the Edit File Type dialog box, the Actions list displays the defined actions for the file type. You usually see two types of actions:

  • An action shown in boldface represents the default action for the file type. This is the action that’s performed when you double-click one of these files (or highlight a file and press Enter). This action also appears in bold on the file type’s shortcut menu (the menu that appears when you right-click a file of that type).

  • All other actions are listed on the shortcut menu for the file type.

The buttons beside the Actions list enable you to work with the file type’s actions:

New

Click this button to create a new action for the file type. See "Creating a New File Type Action," later in this chapter.

Edit

Click this button to make changes to the selected action. See "Editing a File Type Action," later in this chapter.

Remove

Click this button to delete the selected action.

Set Default

Click this button to make the selected action the default for this file type.


Associating an Extension with a Different Application

There are many reasons you might want to override Windows XP’s default associations and use a different program to open an extension. For example, you might prefer to open text files in WordPad instead of Notepad. Similarly, you might want to open HTML files in Notepad or some other text editor rather than Internet Explorer.

In these cases, you need to associate the extension with the application you want to use instead of the Windows default association. Windows XP gives you two ways to go about this:

The Open With dialog box

With this method, right-click any file that uses the extension and then click Open With. (If you’ve used the Open With dialog box on this extension before, click the Choose Program command from the menu that appears.) In the Open With dialog box, select the program you want to use, activate the Always Use This Program to Open These Files check box, and click OK.

The File Types tab

With this method, you use the File Types tab to edit the Open action of the file type. See the next section to learn how to edit a file type action.


Editing a File Type Action

Follow these steps to make changes to a file type action:

  1. In the File Types tab, select the file type you want to work with.

  2. Click the Advanced button. The Edit File Type dialog box appears.

  3. In the Actions list, select the action you want to change, and then click Edit. The Editing Action for Type: Type dialog box appears (where Type is the file type you're working with).

  4. (Optional) Use the Action text box to change the name of the action.

  5. In the Application Used to Perform Action text box, type the full pathname of the application you want to use for the action. Here are some notes to bear in mind:

    • If the pathname of the executable file contains a space, be sure to enclose the path in quotation marks, like so:

    • "C:\Program Files\My Program\program.exe"
    • If you'll be using documents that have spaces in their filenames, add the %1 parameter after the pathname:

    • "C:\Program Files\My Program\program.exe" "%1"

      The %1 part tells the application to load the specified file (such as a filename you click), and the quotation marks ensure that no problems occur with multiple-word filenames.

    • If you're changing the Print action, be sure to include the /P switch after the application's pathname, like this:

    • "C:\Program Files\My Program\program.exe" /P

Creating a New File Type Action

Instead of replacing an action’s underlying application with a different application, you might prefer to create new actions. In our HTML file example, you could keep the default Open action as it is and create a new action—called, for example, Open for Editing—that uses Notepad (or whatever) to open an HTML file. When you highlight an HTML file and pull down the File menu, or right-click an HTML file, the menus that appear will show both commands: Open (for Internet Explorer) and Open for Editing (for Notepad).

To create a new action for an existing file type, follow these steps:

  1. In the File Types tab, select the file type you want to work with.

  2. Click the Advanced button. The Edit File Type dialog box appears.

  3. Click New to display the New Action dialog box.

  4. Use the Action text box to enter a name for the action.

  5. Use the Application Used to Perform Action text box to enter the full pathname of the application you want to use for the new action. (Follow the guidelines that I outlined in the previous section.)

  6. Click OK.

  7. If you want the new action to be the default, select it and click Set Default.

  8. Click OK to return to the File Types tab.

  9. Click Close.

Example: Opening the Command Prompt in the Current Folder

When you’re working in Windows Explorer, you might find occasionally that you need to do some work at the command prompt. For example, the current folder might contain multiple files that need to be renamed—a task that’s most easily done within a command-line session. Selecting Start, All Programs, Accessories, Command Prompt starts the session in the %USERPROFILE% folder, so you have to use one or more CD commands to get to the folder you want to work in.

An easier way would be to create a new action for the Folder file type that launches the command prompt and automatically displays the current Windows Explorer folder. To do this, follow these steps:

  1. Select Folder in the File Types tab.

  2. Click Advanced to display the Edit File Type dialog box.

  3. Click New to display the New Action dialog box.

  4. Type Open &With Command Prompt in the Action text box (note that the letter W is the accelerator key).

  5. cmd.exe /k cd "%L"
  6. Figure 3.7 shows a completed dialog box. Click OK when you’re done. Windows XP adds your new action to the Folder type’s Actions list.

Figure 3.7

Figure 3.7 Use the New Action dialog box to define a new action for the file type.

In Figure 3.8, I right-clicked a folder. Notice how the new action appears in the shortcut menu. The command prompt window below is what appears if you click the Open With Command Prompt command.

Figure 3.8

Figure 3.8 The new action appears in the file type’s shortcut menu.

Disassociating an Application and an Extension

One of the most annoying things a newly installed program can do is change your existing file type associations. Some programs are courteous enough to ask you whether they can change some associations. However, many other programs make the changes without permission. In these cases, you often want to undo the damage by disassociating the new application from the affected extensions. You have two ways to proceed:

  • If you want to revert the association back to its original application, use the procedure I outlined earlier in the "Associating an Extension with a Different Application" section.

  • If you prefer to have no associated application at all, first display the File Types tab. Then select the file type or extension and click Advanced. In the Actions list, select Open and then click Remove.

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020