about summary refs log tree commit diff stats
path: root/BuildRun.bat
blob: 9e9697fb3ac25a9cccb3f4357977352d8630693b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
@echo off
mkdir bin 2>NUL
cls
echo compiling...
mkdir bin 2>nul
gcc test.c base64.c -o bin\test.exe
gcc b64f.c base64.c -s -o bin\b64f.exe
echo running...
bin\test.exe
echo.
echo ----------------[ Testing file - encoding/decoding ]----------------
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