Windows XP Hacks Free Open Book

Windows XP Hacks

Previous Section Next Section

Hack 27 Forcing Windows Explorer Into True Usefulness

figs/moderate.giffigs/hack27.gif

A grab bag of ways to make better use of Explorer.

There are plenty of small ways you can hack Explorer to make your computing life more productive—for example, by hacking the right-click shortcut menu. Try out these hacks and see.

3.8.1 Add Shortcut Menu Items to Specific File Types

When you right-click on a file in Explorer, you get a shortcut menu that includes a list of programs with which you can open the file. But the programs that you want to open those files might not always be on the shortcut menu. It's easy to add new programs to that list. Let's say that you want to add a shortcut menu item that allows .gif files to be opened with the freeware graphics viewer IrfanView [Hack #86]. From Windows Explorer, choose Tools Folder Options File Types. In the Registered File Types list, select the file type for which you want to add a new shortcut menu item. In our example, we'll choose a GIF file. After this hack, any time you click on a file of this type, you'll get a new choice to open the file with.

Once you've chosen your file type, choose Advanced New. You'll see the New Action dialog box shown in Figure 3-16.

Figure 3-16. Adding a new program to the shortcut menu
figs/xph_0316.gif

In the Action box, type the text you want to appear on the shortcut menu—for example, Open with IrfanView. In the "Application used to perform action" box, enter the executable program you want to open the file with, including the full path. Surround it by quotation marks. Then leave a space and type in "%1". The "%1" is a placeholder; it will be used as a substitute for the name of the file on which you right-click. In our instance, the entire string looks like this:

"C:\Program Files\i_view32.exe" "%1"

Click OK. The change will take place immediately, and the new command will appear on the shortcut menu for the specified file type.

3.8.2 Add Global Shortcut Menu Items to All File Types

The previous section of this hack showed how to add shortcut menu items on a file-type-by-file-type basis. In other words, it will only be available on the shortcut menu for the one specific file type you specify. But you can also add that shortcut menu item to every type of file, by using a Registry hack. This is useful when you have a program that can open a wide variety of file types, and you don't want to have to go add a shortcut menu item for every one of those file types. I use the IrfanView graphics viewer for many different types of graphics, so I want it to show up on all those types. Although it will also show up on file types that I won't use it with, such as Word files, it's still worth putting it on the menu globally because of all the time I save by not having to add shortcut menu items over and over again for each file type.

Run the Registry Editor [Hack #68] and go to HKEY_CLASSES_ROOT\*. Create a new subkey called Shell if it doesn't yet exist. The Shell subkey can control parts of the user interface. Create a new subkey under Shell and name it what your new command will be—for example, OpenWithIrfanView. For the default value of the new subkey, type in the text you want to appear on the shortcut menu—for example, Open with IrfanView. Create a new subkey named Command under the subkey that you just created. This subkey will contain the command string that you want to be executed to open the file. For the default value of the Command subkey, enter the command string you want to be executed when the shortcut menu item is chosen—for example:

"C:\Program Files\i_view32.exe" "%1"

Exit the Registry. The new shortcut menu item should be available immediately, though you may need to reboot in order for it to take effect.

3.8.3 Edit File Association Actions

You can use Windows Explorer to change how XP handles file types; for example, you can choose the default action when the file type is double-clicked upon, the application associated with the file type, the icon for the file type, and whether the extension should be displayed or hidden in Windows Explorer. To perform most of these actions, choose Tools Folder Options File Types, choose the file type for which you want to customize an action, then click Advanced. You'll see the screen shown in Figure 3-17.

Figure 3-17. Editing file associations and their actions
figs/xph_0317.gif

From the Edit File Type dialog box, you can change the icon, edit the action to be taken on the file, and choose whether to display the file type in Windows Explorer. The dialog box is fairly self-explanatory. For example, click Change Icon to change the icon; to edit any action, highlight it and click Edit. If you want to change the application associated with the file, choose Tools Folder Options File Types, choose the file type whose association you want to change, click Change, and then choose the application you want to be associated with the file type in the same way as shown in Figure 3-16.

3.8.4 Remove Context Menu Items from Explorer

Explorer's menus can get messy at times. But you can use a Registry hack to clean it up a bit by removing two items from the Tools menu: Map Network Drive and Disconnect Network Drive. Run the Registry Editor and go to:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer

Create the DWORD entry NoNetConnectDisconnect. Give it a value of 1. Exit the Registry. You might have to reboot in order for the setting to take effect and the items to disappear from the menu. To place the items back on the Explorer menu, edit the value to 0, or delete the entry.

3.8.5 Organize the All Programs Menu with Explorer

If you're using the default Windows XP Start Menu view and you're not happy with the way your All Programs menu is organized, you can use Windows Explorer to modify it. The All Programs menu is nothing more than a collection of shortcuts found in two folders: the C:\Documents and Settings\<Your Account>\Start Menu folder (where <Your Account> is your account name), and the C:\Documents and Settings\All Users\Start Menu folder. Items that you want to appear at the very top of the All Programs menu should be put in one of the /Start Menu folders (depending upon whether you want the item to appear only on your All Programs menu, or on all users' All Programs menu.) Items that you want to appear on the lower part of the All Programs menu should be put into the \Start Menu\Programs folder, again, depending on whether you want the item to appear only on your All Programs menu, or on all users' All Programs menu.

    Previous Section Next Section
    Index: [SYMBOL][A][B][C][D][E][F][G][H][I][J][L][M][N][O][P][Q][R][S][T][U][V][W][X][Z]


         Main Menu
    Main Page
    Table of content
    Copyright
    Credits
    Preface
    Chapter 1. Startup and Shutdown
    Chapter 2. The User Interface
    Chapter 3. Windows Explorer
    3.1 Hacks #21-32
    Hack 21 Generating Folder and File Listingsfor Printing or Editing
    Hack 22 Control Windows Explorer with Command-Line Shortcuts
    Hack 23 Empower Windows Explorer with PowerDesk
    Hack 24 Better File Rename
    Hack 25 Find Files Faster by Mastering the Indexing Service's Query Language
    Hack 26 Hiding Folders and Files with the Encrypting File System
    Hack 27 Forcing Windows Explorer Into True Usefulness
    Hack 28 Customize Folder Icons and Balloon Text
    Hack 29 A Power User's Hidden Weapon: Improve the Context Menu
    Hack 30 Take Your Work on the Go with Offline Files and the Briefcase
    Hack 31 Get More Hard Disk Space by Using NTFS Compression
    Hack 32 Put a Command-Line Prompt on Your Desktop
    Chapter 4. The Web
    Chapter 5. Networking
    Chapter 6. Email
    Chapter 7. The Registry
    Chapter 8. Basic Utilities
    Chapter 9. Applications
    Chapter 10. Graphics and Multimedia
    Chapter 11. System Performance
    Chapter 12. Hardware
    Colophon
    Index


    More Books
    PHP Hacks
    Processing Xml With Java - A Guide To Sax, Dom, Jdom, Jaxp, And Trax
    The Koran (Holy Qur'an)
    Macromedia Flash 8 Bible
    Search Engine Optimization for Dummies
    YouTube Traffic
    PHP 5 for Dummies
    Harry Potter and The Chamber of Secrets
    Harry Potter and the Sorcerer's Stone
    The Pilgrim's Progress
    Wireless Hacks
    Flash Hacks. 100 Industrial-Strength Tips & Tools
    PayPal Hacks. 100 Industrial-Strength Tips and Tools
    Amazon Hacks
    Pdf Hacks
    The Da Vinci Code
    Google Hacks
    The Holy Bible
    Windows XP For Dummies
    Harry Potter and the Half-Blood Prince
    Seo Book
    Upgrading and Repairing Networks
    Macromedia Dreamweaver 8 UNLEASHED
    Windows XP Annoyances
    Windows XP Hacks
    Microsoft Windows XP Power Toolkit
    Teach Yourself MS Office In 24Hours
    iPod & iTunes Missing Manual
    PC Hacks 100 Industrial-Strength Tips and Tools
    PC Overclocking, Optimization, and Tuning - 2th Edition
    PC Hardware In A Nutshell 3rd Edition
    PC Hardware in a Nutshell, 2nd Edition
    Upgrading and Repairing PCs
    Google for Dummies
    MySQL Cookbook
    Teach Yourself Macromedia Flash 8 In 24 Hours
    PHP CookBook
    Sams Teach Yourself JavaScript in 24 Hours
    PHP5 Manual
    Free Games Paper Airplanes
    500 Juegos Gratis 500 Giochi Gratis 500 Jeux Gratuits 500 Jogos Gratis 500 Kostenlose Spiele