home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.msdos.batch.nt      Fun with Windows NT batch files      68,980 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 67,388 of 68,980   
   Kerr-Mudd,John to jj4public@vfemail.net   
   Re: CTRL-C became less effective in a gr   
   14 Apr 19 10:00:23   
   
   From: notsaying@invalid.org   
      
   On Sat, 13 Apr 2019 23:41:01 GMT, JJ  wrote:   
      
   > I've just noticed that sometimes the CTRL-C is less effective some of   
   my   
   > batch files. So I isolated the problem and found out that somehow,   
   CTRL-C   
   > became less effective when the current code is in a grouped command(s).   
   > Here's the minimal code to reproduce the problem.   
   >   
   > My solution was to change the code so that it doesn't use any grouped   
   > command whenever possible. But why does CTRL-C became less effective?   
   >   
   > @echo off   
   > echo press ctrl-c now   
   > (   
   >   pause   
   >   echo ctrl-c failed   
   > )   
      
   Seems to work as I'd want here [XP cmd.exe, break off, no   
   extensionsenabled]   
      
   I tried:   
      
   @echo off   
   echo press ctrl-c now   
   (   
     pause   
     echo in bracket ctrl-c failed   
   )   
      
     pause   
     echo no bracket ctrl-c failed   
      
      
   --   
   Bah, and indeed, Humbug.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca