Results 1 to 2 of 2

Thread: Add DOS commands to the context menu of Windows Explorer

  1. #1
    Join Date
    May 2008
    Posts
    176

    Add DOS commands to the context menu of Windows Explorer

    Add your commands to the Windows Explorer

    The Windows command prompt offers dozens of advanced commands that allow experts to manage the functions for manipulating files or more advanced and complex than those allowed by Windows.

    For example, Windows offers no simple function to list all at once the contents of a folder and its subfolders to get a paper printout of the contents of this directory. However, such an operation is quite simple as the command prompt.

    Here's how to add an option "List content" in context menu of Windows Explorer.

    - Open the Start menu and type Regedit in the search box (in XP run Regedit by selecting Run from the Start menu).

    - Deploy the key HKEY_CLASSES_ROOT\Directory\Shell

    - Right click on Shell in the tree from left

    - Select New Key, and then give the key name "List content" (without quotes)

    - Select the key created above in the tree then click the right mouse button and then select New Key. Give this key a name "command".

    - Click the "command" key and thus created in the right list, double-click (default)

    - Enter the following command:
    Code:
    cmd /c "cd /d %1 && dir /N /L /S /-C >%TEMP%tmplist.txt && notepad %TEMP%tmplist.txt
    - Open Windows Explorer

    - Right click on a folder and note the emergence of the "List Content"

    - The contents of the directory is listed in Notepad. There is more than demand printing.

    Note:

    This trick is mainly based on the DIR command to list the files. You can use any other commands for other operations. You can also use other parameters of DIR for a file format other than the one proposed here.

    For example:

    - The following will list just the files in the directory (without subdirectories)
    Code:
    cmd /c "cd /d %1 && DIR /B >%TEMP%tmplist.txt && notepad %TEMP%tmplist.txt
    - The following command will list files and directories on 3 columns
    Code:
    cmd /c "cd /d %1 && DIR /W /S >%TEMP%tmplist.txt && notepad %TEMP%tmplist.txt

  2. #2
    Join Date
    Apr 2008
    Posts
    439

    Re: Add DOS commands to the context menu of Windows Explorer

    Here's how to enrich the menu of the explorer of new functions using the traditional command prompt. It will help you to create a list of files in a directory (and subdirectories) that will display automatically in Notepad to enable printing.

Similar Threads

  1. How to add context menu commands for file type in Windows 7
    By disPLAY BOMb in forum Operating Systems
    Replies: 3
    Last Post: 17-01-2011, 05:20 PM
  2. Explorer context menu to add new recommended program
    By NAKKIRAN in forum Operating Systems
    Replies: 3
    Last Post: 02-12-2010, 04:47 AM
  3. Replies: 3
    Last Post: 01-12-2010, 01:12 PM
  4. What is Windows Explorer Shell Context Menu Pro
    By Abhimanyusuta in forum Windows Software
    Replies: 5
    Last Post: 20-03-2010, 01:22 AM
  5. Customize context menu in Windows Explorer
    By Renderman21 in forum Windows Software
    Replies: 2
    Last Post: 03-07-2009, 11:26 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,633,988.27729 seconds with 17 queries