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

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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 news:kfgpo11qaibdgplpr778lua686mo5hvj57@xxxxxxx,
Juan I. Cahis <jiclbch@xxxxxxxxxxxxxxxxxxxxxx> hunted and pecked:
> 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!

.



Relevant Pages

  • Re: Need help with netstat and connections running in background
    ... Right click on the cmd Title bar, point to Edit and click on Select All. ... Alt + Spacebar opens context menu ... You can type in a command prompt: ... How to start Windows in Safe Mode Windows XP ...
    (microsoft.public.windowsxp.general)
  • Re: cant open command prompt (cmd.exe)
    ... There are Group Policies that could be in force. ... Prevent access to the command prompt ... the Processes tab opens with ntvdm.exe highlighted. ... The default OEM code page in Windows NT is the DOS 437 code page. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Supid question, help though!
    ... cd %userprofile%\My Documents and hit enter. ... into) Command Prompt windows with a mouse. ... Alt + Spacebar opens context menu ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Access is denied to my "C:" drive in command prompt
    ... Microsoft Windows XP ... To get from where your command prompt opens to the root of your C:\-drive ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: Access is denied to my "C:" drive in command prompt
    ... your friend, ... Microsoft Windows XP ... To get from where your command prompt opens to the root of your C:\-drive ...
    (microsoft.public.windowsxp.perform_maintain)