I have 7-Zip installed, and it works from Windows, but not from the DOS prompt or command line:
7z e max_logs_can_messages.tgz
Yields:
'7z' is not recognized as an internal or external command,
operable program or batch file.
You'll need to add the binary to your machine's PATH
See more here: http://www.7-zip.org/faq.html
exe
files.
You can either copy 7-Zip to a well-known path like these:
C:\Windows\system32
C:\Windows
C:\Windows\System32\Wbem
or you call 7-Zip with the full path:
C:\Program Files\7-Zip\7z.exe
Or you do the thing Screenack said ;)
while zipping in cmd or git bash - getting error like
7z:command not found
solution:
Now to use 7z in git Bash
Now, you will be able to use 7z with Git Bash
You need to register 7-Zip as a system PATH environment variable. An easy way to do this in Windows 7 & 8 is to run this from the command line:
setx path "%path%;C:\Program Files\7-Zip"
You need to add the 7-Zip folder to your PATH
:
setx /M path "%path%;C:\Program Files\7-Zip\"
Alternatively, for Easy 7-Zip:
setx /M path "%path%;C:\Program Files\Easy 7-Zip\"
[Environment]::SetEnvironmentVariable("Path", "$env:Path;C:\Program Files\7-Zip")
where you should replace C:\Program Files\7-Zip with your 7-zip folder.
this way you can use "7z" as a command.
7za.exe
, if I remember correctly.