#15 Change directory using a dialog


The one thing I hate most about the command line interface is moving between directories. About half of the time I'm working in the command line I'm typing those CD commands.

This patch is a solution to that pain. It adds a menu command called Change Directory which shows a standard Windows directory selection dialog box (SHBrowseForFolder). After you select a directory, a CD /D command will be executed, bringing you there, even if you select something on another drive.

The menu command is both in the main menu and in the context menu under File. You can also change the directory using Ctrl+D.

The patch changes quite a lot of files as I've tried to keep things as consistent as possible with the current implementation.

The patch has been made against the 131 sources.

Hope this gets to be added to the trunk.

Eli Golovinsky


  • gooli

    gooli - 2007-07-31

    Change directory with a dialog patch

  • Kirill

    Kirill - 2007-09-15

    Logged In: YES
    Originator: NO

    Little known feature of Command Prompt since at least Windows 2000 is that files or folders, dropped into the Command Prompt window, are inserted as full path to them, quoted if required.

    To my big, and hugely pleasant, surprise Console2 does it too.

    So, another solution to your pain could be:
    - type "cd /d "
    - drag-and-drop a folder
    - execute.

    Another use case is:
    - type "diff -Naur "
    - drop an old source tree
    - type " "
    - drop the new source tree
    - (optional) add redirect
    - execute

    Hope it helps (especially if your patch does not make it to the trunk).

    Marko, can you do one better? Neither cmd.exe nor Console2 can't accept special folders. Is it an easy one?

  • Marko Bozikovic

    Marko Bozikovic - 2008-03-27

    Logged In: YES
    Originator: NO

    I have no idea, Kirill, I can take a look. But that does not belong here :)

  • Marko Bozikovic

    Marko Bozikovic - 2008-03-27
    • status: open --> closed

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks