Re: MS-DOS Shell - help needed to start in a specific directory

From: Rob Stow (rob.stow_at_sasktel.net)
Date: 06/20/04


Date: Sun, 20 Jun 2004 11:58:20 -0600

techno wrote:

> How do you start your MS-DOS Shell in the folder (directory) that I
> have my Windows Explorer currently pointing at. Is their a MS-DOS
> variable that can pass that info from Windows.
>
> The properties are at
>
> MS-DOS Prompt Properties\Program\Working
>
> or can a batch file move me to this directory?
>
> Yes, I'm using Windows 2000. Any help will be much appreciated.

Start Explorer.
Go to Tools|Folder Options|File Types.
Scroll through the list until you find "File Folder".

While File Folder is highlighted, click on the Advanced Button.

On the dialog that opens, click "New".

Give it a name like "Command Prompt Here".

For the command, use
    cmd.exe /f:on /k:"cd /d "%1""

To use this, right click on a folder's icon in Explorer
and select your newly created command.

To understand how the command works, go to a command
prompt and type "cmd /? |more"