Wednesday, November 4, 2009

'…….' is not recognized as an internal or external command, error in windows.

RESOLUTION

Go to My Computer-> right click-> Properties->Advanced->Environment
Variables->System variables and locate “PATH”. Add C:\windows\system32 at the
end if it is not already there.

(Click on New->variable name: PATH->Variable value: C:\windows\system32 )

And now run the command. Problem solved...



Basic tips for this Problem OR another way of run commands


1. when we are going to start--> run-->cmd
it will open into the folder
C:\Documents and Settings\Administrator---ok
2.when we are giving commands like (ipconfig )means we are trying to execute a .exe file which is under that folder
if it is not there it will then give an error” unrecognized command or file"
3.but when we install the operating system our required file get installed in the folder
C:\WINDOWS\system32
that means if u go to C:\WINDOWS\system32
through dos command and give ipconfig it will work.
5.Then go to C:\WINDOWS\system32 and copy that ipconfig file and place it in
C:\Documents and Settings\Administrator
and now run the command. Problem solved...



Clear Windows DNS Cache

Command to reset, flush or clear your DNS cache.


XP remembers negative (DNS unable to resolve) entries for a few minutes. Often this can be a pain when moving and debugging sites. As long as that negative entry sits in your DNS cache, your box will continue to give you a cannot find server error. By cleaning out your DNS cache, you can fix this problem.

Rebooting will flush your cache… but there is an easier way.

Drop to a command box and type:

ipconfig /flushdns

To view the current DNS resolver cache content and the entries preloaded from the Hosts file, go to the command prompt and type

ipconfig /displaydns



If you wish to stop XP from placing negative entries into cache, you can make this change in your registry.

1. Goto HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ Dnscache\Parameters
2. Build a new DWORD value called NegativeCacheTime and give it a value of 0

I believe the default time is 5 minutes. I always use zero for my default time, but I think the value above is in seconds. So if you only want to save them for 1 minute, then I am assuming you would change that value to 60.