On The Insider: The Bond Girls of Today and Yesterday

View and modify document association and behavior in Windows 2000 Pro

Tags: Microsoft Windows 2000 Professional, Jim Boyce, document association, dialog box, JPG, Dynamic Data Exchange, Microsoft Windows 2000, Microsoft Windows, Windows 2000 Professional Tips Newsletter

  • Save
  • Print
  • Recommend
  • 2

Takeaway: Windows 2000 Professional associates documents with applications through the document's file extension. Learn how simple it is to change the behavior of an application in relation to specific actions on a document.

Windows 2000 Professional associates documents with applications through the document's file extension. You can change document association in one of two ways: with the ASSOC command from a command prompt or through the File Types tab of the Folder Options dialog box (open any folder and choose Tools | Folder Options).

You can also change the behavior of an application in relation to specific actions on a document. For example, a particular document might take the same action whether you choose to edit or open the document from the document's context menu. However, those actions don't have to be the same.

The document association properties can include several actions. For example, JPG files by default are configured with an open action but no edit action. So, when you double-click a JPG file, it opens in Windows Explorer. However, you may want to right-click the file, choose Edit, and have it open in Paint or some other application.

Follow these steps to modify these document associations:

  1. Open the Folder Options applet from the Control Panel or choose Tools | Folder Options in any open folder.
  2. In the Folder Options dialog box, click the File Types tab.
  3. Locate the file type you want to modify and click it; then, click Advanced to open the Edit File Type dialog box.
  4. To add the edit action, click New to open the New Action dialog box.
  5. Type Edit in the Action field.
  6. Click Browse, select \%systemroot%\System32\mspaint.exe, and click Open.
  7. Click in the Application used to perform action field, place quotes around the path, and add a space, followed by "%1", as in the following example:
    "C:\Winnt\System32\mspaint.exe" "%1"
  8. .
  9. Click OK three times to close all dialog boxes.

Now when you right-click a JPG file, you should see an Edit option in the context menu. Clicking the Edit option should open the JPG file in Paint.

Note that many applications such as Microsoft Office use Dynamic Data Exchange (DDE) to initiate application functions. Modifying these application actions requires an understanding of DDE and its syntax. Search Help for DDE to learn more.

Want more Win2K tips and tricks? Automatically sign up for our free Windows 2000 Professional newsletter, delivered each Tuesday!

  • Save
  • Print
  • Recommend
  • 2

Print/View all Posts Comments on this article

JPEG Viewing sp_not@... | 01/03/06
I thnk I know what you're talking about Palmetto | 01/05/06
Graphics file viewing sp_not@... | 01/05/06
Give me a couple of days Palmetto | 01/07/06
Graphics Viewing sp_not@... | 01/07/06
Let's try this again. Palmetto | 01/09/06
Graphics Viewing sp_not@... | 01/09/06

What do you think?

Article Categories

Security
Security Solutions, IT Locksmith
Networking and Communications
E-mail Administration NetNote, Cisco Routers and Switches
CIO and IT Management
Project Management, CIO Issues, Strategies that Scale
Desktops, Laptops & OS
Windows 2000 Professional, Microsoft Word, Microsoft Excel, Microsoft Access, Windows XP,
Data Management
Oracle, SQL Server
Servers
Windows NT, Linux NetNote, Windows Server 2003
Career Development
Geek Trivia
Software/Web Development
Web Development Zone, Visual Basic, .NET

Managed Hosting<

advertisement
Click Here