DOS Prompt From Windows Explorer

  • Thread starter Thread starter Bob Day
  • Start date Start date
B

Bob Day

In Windows XP Pro, you can create a command prompt to take you to a certain
directory by editing the Start In field in its properties. I have found
this very useful for complicated folder structures. I will copy such a
command prompt to the correct windows folder, then double click on it to
drop to DOS in that specific folder.

Is there a generalized path (some variation of %HOMEDRIVE%%HOMEPATH%) you
can put in properties Start In that would cause a command prompt to drop to
DOS in the directory it is in in windows explorer?

Or, is there a way from windows explorer to drop to the command prompt of
the folder you have displayed? I have not found one, which is why I am
doing the command prompt above.

Thanks!~
Bob Day
 
If you cut and paste the following into an empty text file and save it with
a .reg file extension:

-------
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\Command]
@="Command Prompt"

[HKEY_CLASSES_ROOT\Directory\shell\Command\command]
@="cmd.exe /k cd \"%1\""
--------

Then double click on the .reg file to import the settings into the registry.
Then you'll be able to right click on any folder in Windows Explorer and
select Command Prompt from the context menu. That will give you a new
command prompt window with the current directory being the folder you right
clicked on. I think that's what your after.
 
Works nicely, thanks, but with one draw back. In the DOS window, it shows
the path like this:
C:\CSINST~1\A0-CSA~1\OSSCBE~!>
for a directory of
C:\CS INSTALLS\A0 - CS ADDITONS\OS SCHEDULED TASKS.
Any way to correct this to make it more readable and accurate?

Thanks!
Bob Day

edc1 said:
If you cut and paste the following into an empty text file and save it with
a .reg file extension:

-------
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\Command]
@="Command Prompt"

[HKEY_CLASSES_ROOT\Directory\shell\Command\command]
@="cmd.exe /k cd \"%1\""
--------

Then double click on the .reg file to import the settings into the registry.
Then you'll be able to right click on any folder in Windows Explorer and
select Command Prompt from the context menu. That will give you a new
command prompt window with the current directory being the folder you right
clicked on. I think that's what your after.


"Bob Day" <[email protected]> wrote in message
In Windows XP Pro, you can create a command prompt to take you to a certain
directory by editing the Start In field in its properties. I have found
this very useful for complicated folder structures. I will copy such a
command prompt to the correct windows folder, then double click on it to
drop to DOS in that specific folder.

Is there a generalized path (some variation of %HOMEDRIVE%%HOMEPATH%) you
can put in properties Start In that would cause a command prompt to drop to
DOS in the directory it is in in windows explorer?

Or, is there a way from windows explorer to drop to the command prompt of
the folder you have displayed? I have not found one, which is why I am
doing the command prompt above.

Thanks!~
Bob Day
 
I have also found that using the command prompt from the context menu of a
folder can lock the computer, even ctrl-alt-del won't work. You need to
turn off an restart.
Any thoughts?
Bob Day

Bob Day said:
Works nicely, thanks, but with one draw back. In the DOS window, it shows
the path like this:
C:\CSINST~1\A0-CSA~1\OSSCBE~!>
for a directory of
C:\CS INSTALLS\A0 - CS ADDITONS\OS SCHEDULED TASKS.
Any way to correct this to make it more readable and accurate?

Thanks!
Bob Day

edc1 said:
If you cut and paste the following into an empty text file and save it with
a .reg file extension:

-------
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\Command]
@="Command Prompt"

[HKEY_CLASSES_ROOT\Directory\shell\Command\command]
@="cmd.exe /k cd \"%1\""
--------

Then double click on the .reg file to import the settings into the registry.
Then you'll be able to right click on any folder in Windows Explorer and
select Command Prompt from the context menu. That will give you a new
command prompt window with the current directory being the folder you right
clicked on. I think that's what your after.


"Bob Day" <[email protected]> wrote in message
In Windows XP Pro, you can create a command prompt to take you to a certain
directory by editing the Start In field in its properties. I have found
this very useful for complicated folder structures. I will copy such a
command prompt to the correct windows folder, then double click on it to
drop to DOS in that specific folder.

Is there a generalized path (some variation of %HOMEDRIVE%%HOMEPATH%) you
can put in properties Start In that would cause a command prompt to
drop
 
Back
Top