BASIC4GL   61
BatchDelayOnExit
Guest on 15th September 2023 12:23:30 AM


  1. @ECHO OFF
  2. REM.-- Prepare the Command Processor
  3. SETLOCAL ENABLEEXTENSIONS
  4. SETLOCAL ENABLEDELAYEDEXPANSION
  5.  
  6. REM.-- Version History --
  7. REM         XX.XXX           YYYYMMDD Author Description
  8. SET version=01.000-beta &rem 20051201 p.h.  initial version, providing the framework
  9. REM !! For a new version entry, copy the last entry down and modify Date, Author and Description
  10. SET version=%version: =%
  11.  
  12. REM.-- Set the window title
  13. SET title=%~n0
  14.  
  15.  
  16. REM.-- your code goes here
  17. echo.Hello World
  18.  
  19.  
  20. REM.-- End of application
  21. FOR /l %%a in (5,-1,1) do (TITLE %title% -- closing in %%as&ping -n 2 -w 1 127.0.0.1>NUL)
  22. TITLE Press any key to close the application&ECHO.&GOTO:EOF

Raw Paste

Login or Register to edit or fork this paste. It's free.