Re: DOS commands
From: jco (anonymous_at_discussions.microsoft.com)
Date: 03/01/04
- Next message: zmerli: "ask for help to adjust a script batch to print all the containing of a folder"
- Previous message: Torgeir Bakken (MVP): "Re: forgotten administrator password"
- In reply to: Torgeir Bakken (MVP): "Re: DOS commands"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 29 Feb 2004 16:06:39 -0800
I have to thank you much, your responce was very helpful.
in fact you are the one who helped me.
>-----Original Message-----
>jco wrote:
>
>> Can someone advice me? for some reason my DOS is not
>> taking any of my commands, the only one that it accepts is
>> "DIR", it doesn't take "ping", "netstat", etc....
>>
>> what do you think the problem is? What should i do to
>> fix this?
>
>Hi
>
>This is usually caused by two things, either that vital
system folders
>is missing from your path, or that the value type for the
path entry in
>the registry is changed from the "REG_EXPAND_SZ" format to
"REG_SZ".
>Note that sometimes both situations can be present at the
same time.
>
>The easiest way to check to see if any of the problems
above is
>relevant for you, is to open a command prompt and take a
look at
>the path element in the environment:
>
>1.
>Open a command prompt (e.g. select Start\Run in the menu and
>then run cmd.exe
>
>2.
>Type "path" (without the quotes) and press enter.
>
>As part of the path listing (preferably at the beginning),
you should
>see the following three folders:
>
>C:\WINNT\System32;C:\WINNT;C:\WINNT\System32\Wbem;
>
>(where "C:\WINNT" is the folder to you Windows folder)
>
>3.
>If you don't see those folders, do the steps in both A)
and B) below.
>
>If you see them, but they are containing the environment
variable
>%SystemRoot% as a literally part of the name and not the
actual
>windows folder name itself, like this:
>
>%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\system32\WBEM;
>
>you need to do the steps in B) below.
>
>
>==================================================
>A)
>
>Add missing vital system folders like this:
>
>Control Panel - System - Advanced -
>Environment Variables
>
>Find PATH under "System variables" and select Edit, add
this line at the start:
>
>%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\system32\WBEM;
>
>
>==================================================
>B)
>
>To verify that the registry value for the path is still in
>"REG_EXPAND_SZ" format and not "REG_SZ", and how to fix it
>if necessary, see this link:
>
>http://home.comcast.net/~stewartb/cmdprompt.html#6
>
>
>--
>torgeir
>Microsoft MVP Scripting and WMI, Porsgrunn Norway
>Administration scripting examples and an ONLINE version of
the 1328 page
>Scripting Guide: http://www.microsoft.com/technet/scriptcenter
>
>
>.
>
- Next message: zmerli: "ask for help to adjust a script batch to print all the containing of a folder"
- Previous message: Torgeir Bakken (MVP): "Re: forgotten administrator password"
- In reply to: Torgeir Bakken (MVP): "Re: DOS commands"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|