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 68,413 of 68,980   
   Herbert Kleebauer to All   
   Re: Replace line in a txt file with miss   
   10 Jan 24 10:29:26   
   
   From: klee@unibwm.de   
      
   On 10.01.2024 04:23, Zaidy036 wrote:   
   > On 1/8/2024 8:21 PM, JJ wrote:   
      
      
   > ---This one line in an Admin CMD window works:   
   > FOR /F "TOKENS=1,2 DELIMS=:" %A IN (F:\_%_NN%NW-B.txt) DO (IF "%B"==" "   
   > ECHO %A >> F:\_%_NN%NW-N.txt)   
      
      
   Is _NN a variable and %_NN% its content or is the % in   
   _%_NN%NW-N.txt part of the file name (you should never use   
   a % in a file name. In a batch file you have to double the %.   
      
   --- 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