Re: cmd doesn't search my path for programs




<israelhsu@xxxxxxxxx> wrote in message
news:1169327197.937315.25730@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hello.

I'm running Windows XP SP2, updated and virus-free and trojan-free. I
also have Cygwin installed and running.

When I use cmd, many (most) programs cannot be found even though the
PATH environment variable is correct. My PATH includes

%SystemRoot%;%SystemRoot%\system32;%SystemRoot%\system32\WBEM;E:\Programs\1-
File
Utilities. The last directory contains some utility programs that did
not require an install (just copy and use), for example, pdftk.exe.
I've checked the PATH by running "echo %PATH%" and by looking in My
Computer > Properties > Advanced > Environment Variables.

In cmd, when I type "pdftk", it works only if the current directory is
E:\Programs\1-File Utilities. Otherwise, the error is given: 'pdftk' is
not recognized as an internal or external command, operable program or
batch file.

My PATHEXT also includes .EXE (is PATHEXT case sensitive?)

I *can* run "notepad" from cmd (which is located in
%SystemRoot%\system32).

Help! I've run out of ideas It seems that the cmd is not searching the
PATH.

Thanks.


Type the command echo %path% from a Command
Prompt. Does it read litterally
%SystemRoot%;%SystemRoot%\system32;%SystemRoot%\system32\WBEM;E:\Programs\1-
File
Utilities

If so then the path key in the registry is of the wrong type. It is
kept here: HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
and it must be of type REG_EXPAND_SZ, not REG_SZ.


.



Relevant Pages

  • Re: How To Execute Batch File Line By Line
    ... COMMAND /C string Carries out the command specified by string, ... CMD /C Carries out the command specified by string and then terminates. ... .cmd files will NOT work on non Windows NT versions i.e. Windows 9x, ... Both .cmd and .bat files work on Windows NT versions. ...
    (microsoft.public.windowsxp.general)
  • Re: Command.Com - Sinn und Unsinn?
    ... Kompatibilität für 16-Bit-Porgs dient, dann gilt das auch ... Anforderung die ich an CMD / Command stelle! ... Ich habe seit DOS 4 "Fachwissen" um DOS - und wenn ich ...
    (microsoft.public.de.german.windowsxp.sonstiges)
  • Re: MSinfo32.exe help
    ... when i do the cmd for rd packagestore /s /q(system cant find file ... use it even though i have to use cmd to open it.this bothers me alot i defrag ... my packagestore folder didn't have any .cab files in it ... > command in case there's a problem with word wrap. ...
    (microsoft.public.windowsxp.general)
  • Re: A clean way to program an interface
    ... Yes - You are correct UnidenConnection is nothing more than a pyserial ... with his naming of certain methods with the same name as the command ... def makeStatusCheckCommandFunction: ... the command strings are just passed along as the argument cmd, ...
    (comp.lang.python)
  • Re: Results from Rameshs commands
    ... > Type this command in Start, ... use this DIR command in the Command Prompt: ... > I used an old clean tool to uninstall One Care (provided by One Care ... I can at the cmd prompt. ...
    (microsoft.public.windowsxp.customize)

Loading