Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > Dos Commands not working from cmd Prompt

Reply
Thread Tools Display Modes

Dos Commands not working from cmd Prompt

 
 
Tarun
Guest
Posts: n/a

 
      12-11-2007
I have a problem running DOS commands when opening a cmd window. I open the
window and try to execute a command such as 'ping' and receive the following
error;

'ping' is not recognized as an internal or external command, operable
program or batch file.

However, if i type the full path c:\windows\system32\ping i can get the
program to run

Please let me know fast the solution
 
Reply With Quote
 
 
 
 
Paul Randall
Guest
Posts: n/a

 
      12-11-2007
Open a cmd window and type the word path and hit enter.
It should show you one or more paths to various folders, separated by
semicolons. One of those paths should be c:\windows\system32.

If that path is not there, you should be able to google for info on
how to add it to your path or let us know and someone should be able
to help you add it in a way that it will be persistent even after
rebooting. I can't remember the details right now.

-Paul Randall

"Tarun" <> wrote in message
news:24189405-D10D-412F-9086-...
>I have a problem running DOS commands when opening a cmd window. I
>open the
> window and try to execute a command such as 'ping' and receive the
> following
> error;
>
> 'ping' is not recognized as an internal or external command,
> operable
> program or batch file.
>
> However, if i type the full path c:\windows\system32\ping i can get
> the
> program to run
>
> Please let me know fast the solution



 
Reply With Quote
 
dzomlija
Guest
Posts: n/a

 
      12-11-2007

Do like Paul says, and open a CMD window and type PATH to see what th
current environment variables are

If they are missing, or pointing to the wrong places, you can chang
them as follows

- Right-click on Computer and select Properties
- Click on "Advanced System Settings". You will needs to respond to
UAC prompt
- Click on "Environment Variables"
- Double-click on PATH, and check that you have the following path
entered (Without the quotes) : "_%SystemRoot%\system32_"
_\"%SystemRoot%_" and _\"%SystemRoot%\System32\Wbem_
- Click OK for all dialogs
- Reboot the compute
- Try the PING command again in a CMD window. If it still does no
work, then the file may have been deleted. Run an Admin-level CM
window, and type "SFC /scannow" (without quotes) to try an fix th
problem.*Warning:* If you improperly change the PATH variable, you could alte
the behaviour of more than just Windows itself. Use caution, and alway
make a note of what the original value was before making any changes, i
case you ned to get back

--
dzomlij

___________________________________
Peter Alexander Dzomlij
Do you hear, huh? The Alpha and The Omega? Death and Rebirth? -And a
you die, so shall I be Reborn-..

- ASUS A8N32-SLI-Delux
- AMD Athlon 64 Dual-Core 4800
- 4GB DDR40
- 128MB ASUS nVidia 6600 PCI-Expres
- Thermaltake Tai-Chi Watercooled Chassi
- 1207GB Total Formatted Storag
- Vista Ultimate x6
- CodeGear Delphi 2007See my rig at
http://s229.photobucket.com/albums/ee312/Dzomlija/Venus

My Weblog
'http://dzomlija.spaces.live.com/' (http://dzomlija.spaces.live.com/)
 
Reply With Quote
 
Redcow
Guest
Posts: n/a

 
      01-04-2008
OK, I'm a little dense
In system properties, I go to the 'advanced' TAB.
I click 'environmental variables'.
PATH is incorrect, so I click 'edit'.
I then type in all the stuff you show in quotes, without the quotes.
my question is ...does all that go in PATH with the commas?

"dzomlija" wrote:

>
> Do like Paul says, and open a CMD window and type PATH to see what the
> current environment variables are.
>
> If they are missing, or pointing to the wrong places, you can change
> them as follows:
>
> - Right-click on Computer and select Properties.
> - Click on "Advanced System Settings". You will needs to respond to a
> UAC prompt.
> - Click on "Environment Variables".
> - Double-click on PATH, and check that you have the following paths
> entered (Without the quotes) : "_%SystemRoot%\system32_",
> _\"%SystemRoot%_" and _\"%SystemRoot%\System32\Wbem_"
> - Click OK for all dialogs.
> - Reboot the computer
> - Try the PING command again in a CMD window. If it still does not
> work, then the file may have been deleted. Run an Admin-level CMD
> window, and type "SFC /scannow" (without quotes) to try an fix the
> problem.*Warning:* If you improperly change the PATH variable, you could alter
> the behaviour of more than just Windows itself. Use caution, and always
> make a note of what the original value was before making any changes, in
> case you ned to get back.
>
>
> --
> dzomlija
>
> ____________________________________
> Peter Alexander Dzomlija
> Do you hear, huh? The Alpha and The Omega? Death and Rebirth? -And as
> you die, so shall I be Reborn-...
>
> - ASUS A8N32-SLI-Deluxe
> - AMD Athlon 64 Dual-Core 4800+
> - 4GB DDR400
> - 128MB ASUS nVidia 6600 PCI-Express
> - Thermaltake Tai-Chi Watercooled Chassis
> - 1207GB Total Formatted Storage
> - Vista Ultimate x64
> - CodeGear Delphi 2007See my rig at:
> http://s229.photobucket.com/albums/e...zomlija/Venus/
>
> My Weblog:
> 'http://dzomlija.spaces.live.com/' (http://dzomlija.spaces.live.com/)
>

 
Reply With Quote
 
dzomlija
Guest
Posts: n/a

 
      01-05-2008

Each entry in PATH must be separated by semicolons, like this:
"%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\S ystem32\Wbem"


--
dzomlija

____________________________________
Peter Alexander Dzomlija
Do you hear, huh? The Alpha and The Omega? Death and Rebirth? -And as
you die, so shall I be Reborn-...

- ASUS A8N32-SLI-Deluxe
- AMD Athlon 64 Dual-Core 4800+
- 4GB DDR400
- 128MB ASUS nVidia 6600 PCI-Express
- Thermaltake Tai-Chi Watercooled Chassis
- 1207GB Total Formatted Storage
- Vista Ultimate x64
- CodeGear Delphi 2007See my rig at:
http://s229.photobucket.com/albums/e...zomlija/Venus/

My Weblog:
'http://dzomlija.spaces.live.com/' (http://dzomlija.spaces.live.com/)
 
Reply With Quote
 
Redcow
Guest
Posts: n/a

 
      01-10-2008
Thank you

"dzomlija" wrote:

>
> Each entry in PATH must be separated by semicolons, like this:
> "%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\S ystem32\Wbem"
>
>
> --
> dzomlija
>
> ____________________________________
> Peter Alexander Dzomlija
> Do you hear, huh? The Alpha and The Omega? Death and Rebirth? -And as
> you die, so shall I be Reborn-...
>
> - ASUS A8N32-SLI-Deluxe
> - AMD Athlon 64 Dual-Core 4800+
> - 4GB DDR400
> - 128MB ASUS nVidia 6600 PCI-Express
> - Thermaltake Tai-Chi Watercooled Chassis
> - 1207GB Total Formatted Storage
> - Vista Ultimate x64
> - CodeGear Delphi 2007See my rig at:
> http://s229.photobucket.com/albums/e...zomlija/Venus/
>
> My Weblog:
> 'http://dzomlija.spaces.live.com/' (http://dzomlija.spaces.live.com/)
>

 
Reply With Quote
 
er.gaurav
Guest
Posts: n/a

 
      10-06-2008

well, i hv tried all d above mentioned possible ways to rectify thi
problem;;i hv gone through th admin-level cmd also bt dat is sayin' n
error to my system ;;even then i m unable to run attrib & ping;;
PLZ Help....
Thanx...

--
er.gaura
-----------------------------------------------------------------------
er.gaurav's Profile: http://forums.techarena.in/members/er-gaurav.ht
View this thread: http://forums.techarena.in/vista-help/869501.ht

http://forums.techarena.i

 
Reply With Quote
 
Mr. Arnold
Guest
Posts: n/a

 
      10-07-2008

"er.gaurav" <> wrote in message
news:...
>
> well, i hv tried all d above mentioned possible ways to rectify this
> problem;;i hv gone through th admin-level cmd also bt dat is sayin' no
> error to my system ;;even then i m unable to run attrib & ping;;
> PLZ Help....
> Thanx....


What happens when you activate this admin account that always has full admin
rights?

<http://www.howtogeek.com/howto/windows-vista/enable-the-hidden-administrator-account-on-windows-vista/>


 
Reply With Quote
 
Peter Foldes
Guest
Posts: n/a

 
      10-07-2008
Sorry but cannot read shorthand

--
Peter

Please Reply to Newsgroup for the benefit of others
Requests for assistance by email can not and will not be acknowledged.

"er.gaurav" <> wrote in message news:...
>
> well, i hv tried all d above mentioned possible ways to rectify this
> problem;;i hv gone through th admin-level cmd also bt dat is sayin' no
> error to my system ;;even then i m unable to run attrib & ping;;
> PLZ Help....
> Thanx....
>
>
> --
> er.gaurav
> ------------------------------------------------------------------------
> er.gaurav's Profile: http://forums.techarena.in/members/er-gaurav.htm
> View this thread: http://forums.techarena.in/vista-help/869501.htm
>
> http://forums.techarena.in
>

 
Reply With Quote
 
Dzomlija
Guest
Posts: n/a

 
      10-07-2008

er.gaurav;854193 Wrote:
> well, i hv tried all d above mentioned possible ways to rectify this
> problem;;i hv gone through th admin-level cmd also bt dat is sayin' no
> error to my system ;;even then i m unable to run attrib & ping;;
> PLZ Help....
> Thanx....
>
>
> --
> er.gaurav
> ------------------------------------------------------------------------
> er.gaurav's Profile: 'er.gaurav's profile on TechArena Computer
> Hardware Support Forums of India'
> (http://forums.techarena.in/members/er-gaurav.htm)
> View this thread: 'Dos Commands not working from cmd Prompt - Vista
> Help' (http://forums.techarena.in/vista-help/869501.htm)
>
> 'TechArena Community - Technology and Computer Hardware Support Forums
> of India' (http://forums.techarena.in)


Right, let's se if we can help here.


- Click "Start"
- Right-click on "Computer", then select "Properties"
- In the left pane, click "Advanced system settings" (You'll need to
respond to a UAC prompt)
- In the "Advanced" tab, click "Environment Variables"
- Under "System variables", find the "Path" entry, and then make sure
that "%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\S ystem32\Wbem"
is there (without quotes). If you're not sure, copy and paste the
entire "path" value into a new post here so we can see what is there.

If you don't want to go the above route, then try this:


- Open a "CMD" window as you normally would. Make a note of which
folder is current in the command window.
- type "set >vars.txt" (without quotes) and press <ENTER>
- Close the CMD window
- Open Explorer, and go to the folder you noted earlier in step 1
- Attach the VARS.TXT file to a reply post here so we can see what
your environment variables look like.

In either case, the idea is to see what you have for PATH, and from
there help you to make whatever corrections you require (if any).


--
Dzomlija

*PETER ALEXANDER DZOMLIJA*
-Do you hear, huh? The Alpha and The Omega? Death and Rebirth? And as
you die, so shall I be Reborn...-

http://www.phx.co.za/
 
Reply With Quote
 
 
 
Reply

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Speach Recognition voice commands not working. Questioning My Commands !!! Windows Vista General Discussion 1 02-22-2008 12:00 AM
Commands JMed Windows Vista General Discussion 5 01-08-2008 12:50 PM
Folder commands Stelcom Windows Vista General Discussion 3 01-03-2008 02:04 AM
DOS commands PJ Perillo Windows Vista General Discussion 5 12-18-2007 07:31 PM
Prompt to safely remove hardware not working cookie Windows Vista Hardware 2 08-16-2007 01:16 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59