Windows cmd does not recognize xx.exe even though xx.exe is in system path
Posted
by
July
on Super User
See other posts from Super User
or by July
Published on 2012-12-05T08:34:43Z
Indexed on
2012/12/05
11:10 UTC
Read the original article
Hit count: 276
windows-7
|command-line
I installed 7-zip and add its directory to system path: C:\Program Files\7-Zip
to PATH
, from windows start->input cmd and press enter, Windows command line is started, i type 7z.exe, then press enter, it just run.
However when i start command line this way:
cmd.exe /c start {projectDir} /D{driveLetter} cmd /K
then i type 7z.exe
, it gives me error because it can not find 7z.exe.
why and how to fix?
P.S. 1. I'm on Win7. 2. For some other apps, the above way did works, that's why i'm so confused how bat works.
© Super User or respective owner