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,340 of 68,980   
   Herbert Kleebauer to All   
   Re: "!" character won't show if DelayedE   
   04 Dec 18 07:56:25   
   
   From: klee@unibwm.de   
      
   On 04.12.2018 00:22, JJ wrote:   
   > I know that the "!" character become a special character if Delayed   
   > Expansion is enabled. I thought the solution to show the "!" character is   
   > simple like showing the "%" character, but apparently it's not.   
   >   
   > So, how the heck can I show the "!" character?   
   >   
   > [code]   
   > @echo off   
   > setlocal enabledelayedexpansion   
   >   
   > rem this works   
   > echo 100%%   
   >   
   > rem none of these works   
   > echo hello!!   
   > echo hello!!!!   
   >   
   > pause   
   > [/code]   
   >   
      
   echo hello^^!^^!   
   echo hello^^!^^!^^!^^!   
      
   --- 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