View difference between Paste ID: M1EC97Wv and bmjyEfx9
SHOW: | | - or go back to the newest paste.
1-
npp_save
1+
@echo off
2-
cd "C:\users\kris\desktop\projects"
2+
setlocal
3-
C:\MinGW\bin\gcc.exe "$(FILE_NAME)"
3+
4-
cmd /c "C:\users\kris\desktop\projects\a.exe"
4+
rem **** c:\mingw\compile.bat ****
5
rem for npp_save
6
7
rem **** variables related to source/target *****
8
set gcc=%~dp0\bin\gcc.exe
9
set srcin=%~fn1
10
set fout=%~dpn1.exe
11
12
rem **** here you can add compiler parameters ****
13
set parms=
14
rem **** here you can add library dependencies ****
15
set libs=
16
17
%gcc% %srcin% %parms% %libs% -o %fout%
18
if errorlevel 1 ( goto :eof )
19
20
rem *** only run output if there was no errors compiling ***
21
cmd /c "%fout%"
22