Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set stamp=%DATE% %TIME%
- set stampdate=%stamp:~4,10%
- set stamptime=%stamp:~-11,11%
- set stampdate=%stampdate:~-4,4%%stampdate:~-10,2%%stampdate:~-7,2%
- set stamptime=%stamptime:~0,2%%stamptime:~3,2%%stamptime:~6,2%%stamptime:~9,2%
- set stamp=%stampdate:~0,4%-%stampdate:~4,2%%stampdate:~6,2%-%stamptime:~0,2%%stamptime:~2,2%-%stamptime:~4,2%%stamptime:~6,2%
- echo DateTime: %stamp%
- set timestamp=%stamp%
- set compilerpath=C:\Program Files (x86)\FreeBASIC\fbc
- set prjname=Force Quit
- tasklist /FI "IMAGENAME eq %prjname%.exe" 2>NUL | find /I /N "%prjname%.exe">NUL
- if "%ERRORLEVEL%"=="0" (
- taskkill -f -im "%prjname%.exe"
- )
- "%compilerpath%" ".\%prjname%.bas" -s gui ".\rc\%prjname%.rc" > ".\Debug %prjname%.log"
- if [not] exist ".\Revision History" (
- mkdir ".\Revision History"
- )
- if [not] exist ".\Revision History\Compiler" (
- mkdir ".\Revision History\Compiler"
- )
- if [not] exist ".\Revision History\Compiler\%prjname%"
- mkdir ".\Revision History\Compiler\%prjname%"
- )
- cmd /c echo F | xcopy ".\Debug %prjname%.log" ".\Revision History\Compiler\%prjname%\Debug %timestamp%.log"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement