How to Change the default current directory when entering the cmd window?

A

AN

Hello!
In WindowsXP,When you entered the CMD.EXE command window by choosing
"start"/"run"/"cmd",the default drectory is most probably like "C:\Documents
and Settings\user name", This directory is usually not the wanted ones.I'd
like it to be the current folder of windows explorer just as it worked in
the COMMAND.COM window in Windows 98.Is there any way?
 
A

AN

Thanks !
It sound like to set the startup folder to a certain ones,not the current
folder of explorer.
 
T

Tom Porterfield

AN said:
Hello!
In WindowsXP,When you entered the CMD.EXE command window by choosing
"start"/"run"/"cmd",the default drectory is most probably like
"C:\Documents and Settings\user name", This directory is usually not the
wanted ones.I'd like it to be the current folder of windows explorer
just as it worked in the COMMAND.COM window in Windows 98.Is there any
way? -------------------------------

You can add "Open command window here" to the context menu of explorer,
allowing you to easily open a command window in any folder. Instead of
manually editing the registry to do this, download and install the "Open
Command Window Here" powertoy from the MS website at
http://www.microsoft.com/windowsxp/downloads/powertoys/xppowertoys.mspx.
 
D

Detlev Dreyer

AN said:
In WindowsXP,When you entered the CMD.EXE command window by choosing
"start"/"run"/"cmd",the default drectory is most probably like
"C:\Documents and Settings\user name", This directory is usually not
the wanted ones.I'd like it to be the current folder of windows
explorer just as it worked in the COMMAND.COM window in Windows 98.Is
there any way?

Type "help cd" at the command prompt. You may also want to create a
shortcut with the preferred start directory in its properties.
 
A

AN

So, it means that there is no way in WindowsXP to enter the current folder
of Explorer when you type the "cmd" command in "start/run" dialogbox.
------------------
 
T

Tom Porterfield

AN said:
So, it means that there is no way in WindowsXP to enter the current
folder of Explorer when you type the "cmd" command in "start/run"
dialogbox. ------------------

You could enter something similar to the following:

cmd.exe /k cd /D %windir%

Putting that in the Start, Run box would open a command prompt in the
Windows directory. But to have it open in the Start/Run box with the
current folder in Windows Explorer is not possible.
 

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