External Programs

Compress files with 7zip

Not like this:


C:\Users\bp>7z compress *.dll
‘7z’ is not recognized as an internal or external command,
operable program or batch file.

This is the correct way:


C:\Users\bp>ai 7z a compress *.dll
Result:
7z a compress.7z *.dll

Convert images with ffmpeg

Not like this:


C:\Users\bp>ffmpeg convert *.png to *.jpg
[NULL @ 0000027d0b2dadc0] Unable to find a suitable output format for ‘convert’
convert: Invalid argument

This is the correct way:


ai ffmpeg convert *png to *.jpg
Result:
ffmpeg -i *.png *.jpg