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,401 of 68,980   
   JJ to All   
   Re: Replace line in a txt file with miss   
   09 Jan 24 08:21:31   
   
   From: jj4public@outlook.com   
      
   On Mon, 8 Jan 2024 13:15:54 -0500, Zaidy036 wrote:   
   > Sorry, did not mean to cause further confusion.   
   >   
   > _JJ (total entries in list) and _NN (multi-run counter) are set before   
   >   
   > SET /A _X=0   
   >:_RepeatX   
   > SET /A _X=%_X% + 1   
   > FOR /D %%S IN ("Guest" "Residents" "ResidentsA" "Residents 5") DO (   
   > FINDSTR /C:"SSID %_X% : %%~S" F:\_%_NN%NetworkB.txt >> F:\_%_NN%NetworkL.txt   
   > )   
   > IF NOT %_X%==%_JJ% && GOTO _RepeatX   
   >   
   > (removed "FOR /L" to simplify for test)   
   >   
   > "usebackq tokens" is what I am missing so thanks for bringing to my   
   > attention. I will learn about applying it for the above or for making   
   > F:\_%_NN%NetworkB.txt   
      
   Also initialize the _JJ variable. Don't leave it empty/unassigned.   
   Initialize it with 0.   
      
   --- 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