From 895e5539a51594a75591d178d6f7de0514042b4d Mon Sep 17 00:00:00 2001 From: DavidMarshal Date: Sun, 29 May 2022 00:25:58 +0430 Subject: [PATCH] added colors and minor changes --- build.cmd | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/build.cmd b/build.cmd index b37065c..0412288 100644 --- a/build.cmd +++ b/build.cmd @@ -1,16 +1,22 @@ @echo off -echo Building Object file ... +echo [INFO] Building Object file ... gcc -c -o BSOD.o BSOD.c -echo linking ... +echo [INFO] linking ... +IF NOT EXIST build\ ( + mkdir build +) +gcc -o build\BSOD.exe BSOD.o %systemroot%\System32\Kernel32.dll %systemroot%\System32\User32.dll %systemroot%\System32\Gdi32.dll %systemroot%\System32\Ole32.dll -gcc -o BSOD.exe BSOD.o C:\Windows\System32\Kernel32.dll C:\Windows\System32\User32.dll C:\Windows\System32\Gdi32.dll C:\Windows\System32\Ole32.dll - -echo Removing object file ... +echo [INFO] Removing object file ... del BSOD.o +IF NOT EXIST build\qr.bmp ( +echo [INFO] Copyning Qr code image ... +copy qr.bmp build\ +) -echo Done! +echo [INFO] build\BSOD.exe Done! PAUSE \ No newline at end of file