Windows cmd does not recognize xx.exe even though xx.exe is in system path
- by July
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.