PDA

View Full Version : DOS window from XP


kenny
November 25th 04, 01:40 PM
Hi,

I want to navigate in explorer to a directory, rather than cd from root,
and from there drop into a system window to run a batch file. What is
the simplest solution.

Thanks

Ron Bogart
November 25th 04, 03:26 PM
In om,
kenny > did some thinking and came up with these words:
> Hi,
>
> I want to navigate in explorer to a directory, rather than cd from
> root, and from there drop into a system window to run a batch file.
> What is the simplest solution.
>
> Thanks

Tweakui Power Tools - Open a command window here tool

http://www.microsoft.com/windowsxp/downloads/powertoys/xppowertoys.mspx


--
Ron Bogart {} τΏτ¬
Associate Expert
Expert Zone - www.microsoft.com/windowsxp/expertzone
"Life is what happens while we are making other plans."

Alex Nichol
November 26th 04, 11:43 AM
kenny wrote:

>I want to navigate in explorer to a directory, rather than cd from root,
>and from there drop into a system window to run a batch file. What is
>the simplest solution.

Set the Target in explorer as
C:\WINDOWS\explorer.exe /e,/select,C:\windows
(or other directory or indeed file). That will open it to the folder
containing the object, with it pre-selected in the right pane

--
Alex Nichol MS MVP (Windows Technologies)
Bournemouth, U.K. (remove the D8 bit)

November 26th 04, 04:21 PM
I think that what you may be looking for is "Command prompt here".
Search on Google for the part in quotes in the line above (leave the quotes
on), and you will find many ways of doing this.

You may also be interested in the program available at the link below:
http://www.codeproject.com/csharp/CommandBar.asp
(requires .net framework) It creates a command window inside of the Explorer
window - go to the link to see a screenshot to see what I mean.

Note: to do the opposite sort of thing, you can cd to a directory in a CMD
window, and then execute "start ." (the period indicates the current dir) to
open an Explorer window in the current directory.
You can also use "explorer ." or "explorer /e,." or "explorer /o,." (those
are comma and period at the end - don't insert spaces) to control how the
window is opened (open/explore/open like web page).

In article >, kenny
> wrote:
|Hi,
|
|I want to navigate in explorer to a directory, rather than cd from root,
|and from there drop into a system window to run a batch file. What is
|the simplest solution.
|
|Thanks

Google