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

T

techno

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.
 
R

Rob Stow

techno said:
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:blush:n /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"
 
T

techno

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:blush:n /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"

Rob,

You really made my day. Works perfectly.
 
R

Rob Stow

techno said:
Rob,

You really made my day. Works perfectly.

No credit is due me.

I got used to this feature from the Win95 PowerToys when
I used NT.

When I couldn't find an equivalent PowerToys for W2K, I just
spent a few minutes figuring out how they must have done it
for Win9x and WinNT.
 
L

Lars

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".

Do you know anything about how to remove it, after trial?

I never knew the details of how to construct one of those
things, but have had that option since years through
"Powertoys". Now I tried out your tip, which worked
perfectly. And so I have two identical entries on the drop
down menu.

When I go back to place where I set it up, the "delete"
option is greyed out.


Lars
Stockholm
 
R

Rob Stow

Do you know anything about how to remove it, after trial?

I never knew the details of how to construct one of those
things, but have had that option since years through
"Powertoys". Now I tried out your tip, which worked
perfectly. And so I have two identical entries on the drop
down menu.

When I go back to place where I set it up, the "delete"
option is greyed out.

For me, not only is the Delete option disabled, but so
is the Edit option. Love to hear an explanation from
someone who has a clue.

In the meantime ...

What you see as "File Folder" in the Explorer options is
"Directory" in the registry. So run RegEdit and go to
the registry key HKEY_CLASSES_ROOT\Directory\shell
and you should see a subkey with the name you gave for
that context menu item (eg., "Command Prompt Here".)
Delete that subkey.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top