Advertisement
jargon

Why do the missing destination debug folders not spawn?

May 6th, 2021
2,315
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. set stamp=%DATE% %TIME%
  3. set stampdate=%stamp:~4,10%
  4. set stamptime=%stamp:~-11,11%
  5. set stampdate=%stampdate:~-4,4%%stampdate:~-10,2%%stampdate:~-7,2%
  6. set stamptime=%stamptime:~0,2%%stamptime:~3,2%%stamptime:~6,2%%stamptime:~9,2%
  7. set stamp=%stampdate:~0,4%-%stampdate:~4,2%%stampdate:~6,2%-%stamptime:~0,2%%stamptime:~2,2%-%stamptime:~4,2%%stamptime:~6,2%
  8. echo DateTime: %stamp%
  9. set timestamp=%stamp%
  10.  
  11. set compilerpath=C:\Program Files (x86)\FreeBASIC\fbc
  12. set prjname=Force Quit
  13.  
  14. tasklist /FI "IMAGENAME eq %prjname%.exe" 2>NUL | find /I /N "%prjname%.exe">NUL
  15. if "%ERRORLEVEL%"=="0" (
  16. taskkill -f -im "%prjname%.exe"
  17. )
  18.  
  19. "%compilerpath%" ".\%prjname%.bas" -s gui ".\rc\%prjname%.rc" > ".\Debug %prjname%.log"
  20.  
  21. if [not] exist ".\Revision History" (
  22.    mkdir ".\Revision History"
  23. )
  24. if [not] exist ".\Revision History\Compiler" (
  25.    mkdir ".\Revision History\Compiler"
  26. )
  27. if [not] exist ".\Revision History\Compiler\%prjname%"
  28.    mkdir ".\Revision History\Compiler\%prjname%"
  29. )
  30.  
  31. cmd /c echo F | xcopy ".\Debug %prjname%.log" ".\Revision History\Compiler\%prjname%\Debug %timestamp%.log"
  32.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement