base64/BuildRun.bat

18 lines
467 B
Batchfile
Raw Normal View History

2014-09-22 05:00:27 +00:00
@echo off
mkdir bin 2>NUL
cls
echo compiling...
gcc test.c base64.c -o bin\test.exe
2018-07-12 14:09:50 +00:00
gcc b64f.c base64.c -o bin\b64f.exe
2014-09-22 05:00:27 +00:00
echo running...
2018-07-12 14:09:50 +00:00
bin\test.exe
echo.
echo Encoding test image "picture.png" to "picture.b64.txt"...
bin\b64f.exe e picture.png picture.b64.txt
echo.
echo Decoding test image from "picture.b64.txt" to "picture.b64.png"...
bin\b64f.exe d picture.b64.txt picture.b64.png
echo.
echo Done.
echo See files manually if the programmed works correctly.
pause