A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Microsoft Windows XP » Windows XP Help and Support
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

the cmd.exe command



 
 
Thread Tools Display Modes
  #1  
Old June 16th 07, 01:23 AM posted to microsoft.public.windowsxp.help_and_support
Charlie Bress
external usenet poster
 
Posts: 18
Default the cmd.exe command

When I run cmd.exe the DOS prompt that shows up is in the form c:\documents
and settings\charlie.

The sort of things that I want to run such as ipconfig, ping, etc. are in
c:\windows\system32.

How can I make cmd give me aDOS prompt that defaults to
c:\windows\system32?

Charlie


Ads
  #2  
Old June 16th 07, 01:52 AM posted to microsoft.public.windowsxp.help_and_support
Claymore
external usenet poster
 
Posts: 829
Default the cmd.exe command

On Jun 15, 8:23 pm, "Charlie Bress" wrote:
When I run cmd.exe the DOS prompt that shows up is in the form c:\documents
and settings\charlie.

The sort of things that I want to run such as ipconfig, ping, etc. are in
c:\windows\system32.

How can I make cmd give me aDOS prompt that defaults to
c:\windows\system32?

Charlie


Hi Charlie,

You should be able to run ping and ipconfig directly from the default
path shown.

  #3  
Old June 16th 07, 02:14 AM posted to microsoft.public.windowsxp.help_and_support
Patrick Keenan
external usenet poster
 
Posts: 4,415
Default the cmd.exe command

"Charlie Bress" wrote in message
...
When I run cmd.exe the DOS prompt that shows up is in the form
c:\documents and settings\charlie.


Technically, it's a command prompt, not a DOS prompt. It isn't DOS in the
sense of MS-DOS. It's fully Windows XP without the pictures.

The sort of things that I want to run such as ipconfig, ping, etc. are in
c:\windows\system32.


Yes, that's where they live.

How can I make cmd give me aDOS prompt that defaults to
c:\windows\system32?


Well, you don't need to, but to do that, you'd need to make a shortcut that
specifies that it starts in that folder.

And you don't need to do this because of the PATH environment variable,
which puts the system32 folder in the path, and makes all those tools
available.

If you are asking this because you are finding that the tools don't run,
getting a message that they can't be found, that's actually a problem with
the PATH environment variable.

To fix it, right-click on My Computer, then properties, Advanced, and
Envirionment Variables. In the lower section, click on Path (you may need
to scroll to find it) then on Edit. Add this to the variable value,
preferably near the start:

%SystemRoot%\system32;

Don't miss the semicolon that separates values.

Click OK back to the desktop, and those tools should be available to you.

HTH
-pk

Charlie



  #4  
Old June 16th 07, 02:15 AM posted to microsoft.public.windowsxp.help_and_support
bud
external usenet poster
 
Posts: 286
Default the cmd.exe command


"Charlie Bress" wrote in message
...
When I run cmd.exe the DOS prompt that shows up is in the form
c:\documents and settings\charlie.

The sort of things that I want to run such as ipconfig, ping, etc. are in
c:\windows\system32.

How can I make cmd give me aDOS prompt that defaults to
c:\windows\system32?

Charlie


Just use the CD command. Type in,
CD c:\windows\system32
press enter.


  #5  
Old June 16th 07, 05:55 AM posted to microsoft.public.windowsxp.help_and_support
Ramesh, MS-MVP
external usenet poster
 
Posts: 3,973
Default the cmd.exe command

Charlie,

You should be able to run IPCONFIG, PING etc from any path in the Command Prompt, provided that the Windows\System32 folder is present in the PATH variable. To verify that, type "PATH" and press ENTER. By default, the following folders would be present in PATH

C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32 \Wbem

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows Shell/User]
Windows® Troubleshooting http://www.winhelponline.com


"Charlie Bress" wrote in message ...
When I run cmd.exe the DOS prompt that shows up is in the form c:\documents
and settings\charlie.

The sort of things that I want to run such as ipconfig, ping, etc. are in
c:\windows\system32.

How can I make cmd give me aDOS prompt that defaults to
c:\windows\system32?

Charlie


  #6  
Old June 16th 07, 11:42 AM posted to microsoft.public.windowsxp.help_and_support
John John
external usenet poster
 
Posts: 3,149
Default the cmd.exe command

The Path variable has to include these 2 variables:
%SystemRoot%\system32;%SystemRoot%

If the path includes those yet your commands don't run check the "path"
value at tht following registry key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Contro l\Session
Manager\Environment

Make sure that the value type is REG_EXPAND_SZ. If it isn't
REG_EXPAND_SZ rename the current Path value to PathOld then create a new
Path REG_EXPAND_SZ value and copy the path from the PathOld to the new
value. You have to reboot the computer to apply the changes.

John

Charlie Bress wrote:

When I run cmd.exe the DOS prompt that shows up is in the form c:\documents
and settings\charlie.

The sort of things that I want to run such as ipconfig, ping, etc. are in
c:\windows\system32.

How can I make cmd give me aDOS prompt that defaults to
c:\windows\system32?

Charlie


  #7  
Old June 16th 07, 09:04 PM posted to microsoft.public.windowsxp.help_and_support
John Hensley
external usenet poster
 
Posts: 49
Default the cmd.exe command

Hi Charlie,

A simple solution would be to create a batch file in your Windows directory
named mycmd.bat with the single line:

@cmd /K cd /D %windir%\system32

Instead of typing "cmd" in the run dialog type "mycmd" and it will always
put you in the C:\Windows\system32 directory.

--
John Hensley
www.resqware.com


"Charlie Bress" wrote:

When I run cmd.exe the DOS prompt that shows up is in the form c:\documents
and settings\charlie.

The sort of things that I want to run such as ipconfig, ping, etc. are in
c:\windows\system32.

How can I make cmd give me aDOS prompt that defaults to
c:\windows\system32?

Charlie



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off






All times are GMT +1. The time now is 02:54 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.