"Jacques Schett" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Sorry for being too general.
>
> What I mean by "Nothing" is that none of the normal paths seem to be
> allowing access to normally used files.
>
> e.g. If I open a CMD shell and CD \ to the root that works. If I type
> "Net Use" to see a list of shares and redirects I get an error that
> says the system cannot find any program called "Net".
>
> If I type in the complete path (e.g. C:\Windows\System32\Net Use) then
> NET works and I get a list of shares and redirections.
>
> in short, I guess, my complaint is that the PATH is not being resolved
> properly. If I type SET at the prompt, I can see all the default
> lookup paths and they're normal (e.g. %SystemRoot%\System32 is in
> there and if I type ECHO %SystemRoot% I get C:\Windows)
>
> What could be causing this problem? As a result, none of the scripts
> we execute work on these two machines (hence my saying NOTHING works).
>
> This is just one example. If I drop to a command prompt and type in
> NOTEPAD (which should launch notepad.exe) I get the same "Bad command
> or filename" error, unless I put in the full path of the executable.
Much better!
You probably have the wrong type for the %path% key. Use
regedit.exe and check the path value under the key
HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
It must be of type REG_EXPAND_SZ, not REG_SZ.
|