Author: bugman Date: Thu Sep 14 11:31:41 2006 New Revision: 2561 URL: http://svn.gna.org/viewcvs/relax?rev=2561&view=rev Log: Another unsuccessful attempt at preventing [Ctrl-C] form asking "Terminate batch job (Y/N)?" in MS Windows. Modified: 1.2/relax.bat Modified: 1.2/relax.bat URL: http://svn.gna.org/viewcvs/relax/1.2/relax.bat?rev=2561&r1=2560&r2=2561&view=diff ============================================================================== --- 1.2/relax.bat (original) +++ 1.2/relax.bat Thu Sep 14 11:31:41 2006 @@ -1,20 +1,21 @@ @echo off -REM Execute this file to run relax in MS Windows. -REM -REM Both relax and python must be located within the system path. -REM This can be set in Windows XP by right clicking on 'My Computer', going to -REM 'Properties', clicking on the 'Advanced' tab, and clicking on the -REM 'Envirnment Variables' button. Then double click on the 'Path' system -REM variable and add the text ";C:\Program Files\Python24;C:\relax" to the end -REM of variable value field (modify the text to point to the correct location). +rem Execute this file to run relax in MS Windows. +rem +rem Both relax and python must be located within the system path. +rem This can be set in Windows XP by right clicking on 'My Computer', going to +rem 'Properties', clicking on the 'Advanced' tab, and clicking on the +rem 'Envirnment Variables' button. Then double click on the 'Path' system +rem variable and add the text ";C:\Program Files\Python24;C:\relax" to the end +rem of variable value field (modify the text to point to the correct location). -REM Catch [Ctrl-C] and exit without asking "Terminate batch job (Y/N)?". -REM on break quit +rem Attempt to prevent [Ctrl-C] and [Ctrl-Break] form asking "Terminate batch +rem job (Y/N)?" on exit. +break off -REM Clear the screen. +rem Clear the screen. cls -REM Run relax using python. %~dp0 will expand to the path where relax is found -REM and %0 is simply 'relax'. %* will send all the remaining arguments to -REM relax. +rem Run relax using python. %~dp0 will expand to the path where relax is found +rem and %0 is simply 'relax'. %* will send all the remaining arguments to +rem relax. python %~dp0%0 %*