Re: commands in command window not functioning

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Marko (Marko_at_mmct.net)
Date: 01/20/05


Date: Thu, 20 Jan 2005 16:56:40 -0500


Jason Ryon wrote:

> I know this is very vague, but I recently messed up my command window
> somehow, and I don't know what I did to it, maybe it was a recently installed
> program or something. Anyways, here are the symptoms that I'm getting: when
> I open a command window and try to execute a line of code (for example
> "xcopy"), it says 'xcopy' is not recognized as an internal or external
> command, operable program or batch file. I know xcopy has worked before on
> this system, and the xcopy.exe program is still located in my system32
> directory. A few other commands don't work either, including 'regedit'.
> Maybe somehow DOS got it's links deleted or something, how do I put them back?
>
> Thanks

right click my computer select properties
advanced tab
environment variables
system variables
check the path, it should be something like
   %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;;
the first one redirects your command to system32

its not DOS btw

-- 
Marko Jotic
"Common sense is anything but common".
 From the notebooks of Lazarus Long. Robert A. Heinlein.
Handmade knives, antique designs, exotic materials at 
http://www.knifeforging.com/


Relevant Pages

  • Re: A more structured approach
    ... I still find Gas fairly cryptic, but I haven't spent much time with it. ... If we started with no command line parameters, this would point at an environment variable, If we started with one or more command line parameters, this might point to one of them, or to the zero that separates command line args from environment variables. ... I suspect what you tried that *didn't* work was a memory to memory compare "cmpb, ...
    (alt.lang.asm)
  • Re: Failed running .bat file from WinXP Explorer
    ... If you use>> anything to the right will be echoed in the command prompt. ... typed in a Command or Run window. ... What does PATHEXT show? ... System environment variables are in the following Registry key: ...
    (microsoft.public.windowsxp.general)
  • Re: What does %WinDir% mean?
    ... Perhaps there really is no WINDIR variable, and it's just a convention to ... Panel, Advanced tab, Environment Variables button). ... In a command shell, when you run the following command: ... Are you still in the command console after the command ends? ...
    (microsoft.public.windowsxp.general)
  • Re: question about setenv
    ... an external command. ... There do exist programs which set environment variables with the help ... Being an external command, ... setenv isn't a standard command that would be found in /bin or /usr/bin ...
    (comp.unix.shell)
  • RE: Windows environment variables
    ... For setting and removing environment variables from the command line, ... Modeled after the famous Black Hat event inL ... Symantec is the Diamond sponsor. ...
    (Security-Basics)