Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsWindows VistaWindows XPWindows MeWindows 98Windows 95Virtual PCInternet ExplorerOutlook ExpressWindows MediaSecurity
Related Topics
MS Server ProductsMS OfficePC HardwareMore Topics ...

Windows Forum / Windows Vista / General Topics / October 2008

Tip: Looking for answers? Try searching our database.

Dos Commands not working from cmd Prompt

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tarun - 11 Dec 2007 16:50 GMT
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
Paul Randall - 11 Dec 2007 19:36 GMT
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

>I have a problem running DOS commands when opening a cmd window. I
>open the
[quoted text clipped - 11 lines]
>
> Please let me know fast the solution
dzomlija - 11 Dec 2007 20:07 GMT
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.

Signature

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/ee312/Dzomlija/Venus/

My Weblog:
'http://dzomlija.spaces.live.com/' (http://dzomlija.spaces.live.com/)

Redcow - 04 Jan 2008 20:42 GMT
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?

> Do like Paul says, and open a CMD window and type PATH to see what the
> current environment variables are.
[quoted text clipped - 18 lines]
> make a note of what the original value was before making any changes, in
> case you ned to get back.
dzomlija - 05 Jan 2008 22:47 GMT
Each entry in PATH must be separated by semicolons, like this:
"%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem"

Signature

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/ee312/Dzomlija/Venus/

My Weblog:
'http://dzomlija.spaces.live.com/' (http://dzomlija.spaces.live.com/)

Redcow - 10 Jan 2008 16:59 GMT
Thank you

> Each entry in PATH must be separated by semicolons, like this:
> "%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem"
er.gaurav - 06 Oct 2008 21:55 GMT
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....

Signature

er.gaurav

http://forums.techarena.in

Mr. Arnold - 07 Oct 2008 02:18 GMT
> 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-acc
ount-on-windows-vista/
>
Peter Foldes - 07 Oct 2008 02:50 GMT
Sorry but cannot read shorthand

Signature

Peter

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

> 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....
Dzomlija - 07 Oct 2008 06:44 GMT
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
[quoted text clipped - 13 lines]
> '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%\System32\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).

Signature

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/

er.gaurav - 13 Oct 2008 07:53 GMT
well, this has been my path entry:-

_%SystemRoot%\system32_;_\%SystemRoot%_;_\%SystemRoot%\System32\Wbem_

Signature

er.gaurav

http://forums.techarena.in

jcgriff2 - 13 Oct 2008 09:42 GMT
er.gaurav;859477 Wrote:
> well, this has been my path entry:-
>
> _%SystemRoot%\system32_;_\%SystemRoot%_;_\%SystemRoot%\System32\Wbem_

The problem are the underscores and the back-slash b4 the environment
variable %systemroot% (which = c:\windows - for most w/ c: as OS drive).
Change your's in red to what appears in blue -

Code:
--------------------
   
 _%SystemRoot%\system32_;_\%SystemRoot%_;_\%SystemRoot%\System32\Wbem_
 
--------------------

Code:
--------------------
   
 %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem
 
--------------------

Regards. . .

jcgriff2

.

Signature

jcgriff2

er.gaurav - 16 Oct 2008 19:23 GMT
Thanks my dear, I hv been able to run attrib in th command prompt but it
is only showing the attributes of c: while in other drives it is showing
file not found;;;moreover when i try to run the Ping while being
connected to the net;; it asks to host the specified ping until the
connection is stopped and then displays th number of commands

Signature

er.gaurav

http://forums.techarena.in

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.