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,968 of 68,980   
   R.Wieser to All   
   Re: echo a variable containing an & some   
   20 Nov 22 15:18:11   
   
   From: address@not.available   
      
   John,   
      
   > '&' is seen as a command concatenation symbol; e.g.   
   > echo Missed it!&cls   
      
   Thank you, but I was aware of that. :-)   To be honest, I'm thinking a bit   
   further and am using that "&" as a placeholder for other special-meaning   
   characters.   
      
   > DelayedExpansion set?   
      
   Nope, but thanks for the suggestion.  Alas, I just tried to put it at   
   several different locations but still got the same result.   
      
   > Ah so you kind of knew why!   
      
   :-)  As someone who was lucky enough to have been provided with a   
   functioning brain I can observe and deduce.   
      
   > Don't make directory names with '&' in them?   
   > (Sorry, not very helpfull)   
      
   :-p  Yeah, that was one of my own thoughts too.  Although that could work   
   for my own drives, all bets are off when I would dare to use it on someone   
   elses USB stick or similar.   
      
   Regards,   
   Rudy Wieser   
      
   --- 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