A CMD or BAT to open an explorer window at the command prompt, in that folder?

J

Juan I. Cahis

Dear friends:

Do you know how to do CMD or BAT to open an explorer window at the
command prompt, in that folder?

The idea is the following. Let suppose that in my Command Prompt
window, I am in the C:\WINDOWS\SYSTEM32> directory.

Can you provide me a CMD or BAT file that opens an explorer window in
*that* directory?

Thanks
Juan I. Cahis
Santiago de Chile (South America)
Note: Please forgive me for my bad English, I am trying to improve it!
 
C

Code-Curious Mom

I would recommend using 'Open Command Window Here' a powertoy from MS. Find
it here:
http://www.microsoft.com/windowsxp/pro/downloads/powertoys.asp

Dear friends:

Do you know how to do CMD or BAT to open an explorer window at the
command prompt, in that folder?

The idea is the following. Let suppose that in my Command Prompt
window, I am in the C:\WINDOWS\SYSTEM32> directory.

Can you provide me a CMD or BAT file that opens an explorer window in
*that* directory?

Thanks
Juan I. Cahis
Santiago de Chile (South America)
Note: Please forgive me for my bad English, I am trying to improve it!
 
C

Code-Curious Mom

Sorry, I was thinking of the other way around...

Dear friends:

Do you know how to do CMD or BAT to open an explorer window at the
command prompt, in that folder?

The idea is the following. Let suppose that in my Command Prompt
window, I am in the C:\WINDOWS\SYSTEM32> directory.

Can you provide me a CMD or BAT file that opens an explorer window in
*that* directory?

Thanks
Juan I. Cahis
Santiago de Chile (South America)
Note: Please forgive me for my bad English, I am trying to improve it!
 
N

Nepatsfan

At the command prompt enter the following:

explorer /n, .

Note: Make sure you've included both the trailing comma and
period.

Here's a Microsoft article that explains some of the switches
that can be used with explorer.exe:

How To Customize the Windows Explorer Views in Windows XP
http://support.microsoft.com/default.aspx?scid=kb;en-us;307856&sd=tech

Creating a CMD or BAT file would be as simple as entering that
command in notepad and saving it with the apporpriate file
extension.

Good luck

Nepatsfan
 
N

Nepatsfan

A follow up to my earlier response.

The command I gave you:

explorer /n, .

simply opens the folder. You wanted an explorer window. For
that the command would be

explorer /e, .

Sorry for the confusion. Remember, both the comma and the
period must be included.

Nepatsfan
 
W

Wesley Vogel

There are many ways to do this.

Right click the cmd.exe shortcut | Properties |
In the Start in box replace %windir% with whatever you want C:\ or
C:\WINDOWS or C:\WINDOWS\SYSTEM32 | Click Apply | Click OK

If you want more than one path for the prompt, create a new shortcut for
each one and just change the Start in.

I have mine set at C:\

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\>

Open a command prompt, type: PROMPT /? and hit Enter.

This will open a command prompt to C:\WINDOWS\system32>
Start | Run | Type or Paste: %comspec% /k | Click OK

%comspec% in Start | Run adds
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
and opens at C:\WINDOWS\system32>

%SystemRoot%\system32\cmd.exe Pasted in Start | Run opens at
C:\WINDOWS\system32>

Also see...
Set the Command prompt default path to a certain directory
http://windowsxp.mvps.org/autoruncmd.htm

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
J

Juan I. Cahis

It works, thanks a lot!!!

Code-Curious Mom said:
OK, how about:

explorer %CD%
Thanks
Juan I. Cahis
Santiago de Chile (South America)
Note: Please forgive me for my bad English, I am trying to improve it!
 
C

Code-Curious Mom

Quite welcome!

It works, thanks a lot!!!

Code-Curious Mom said:
OK, how about:

explorer %CD%
Thanks
Juan I. Cahis
Santiago de Chile (South America)
Note: Please forgive me for my bad English, I am trying to improve it!
 

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