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,390 of 68,980    |
|    Zaidy036 to All    |
|    Replace line in a txt file with missing     |
|    07 Jan 24 21:44:44    |
      From: Zaidy036@air.isp.spam              Windows 10 Pro              My sample.txt is similar to the following up to 50 lines:       SSID 1 : Residents 5       SSID 2 : HSL2       SSID 3 : AscomI62       SSID 4 : Guest       SSID 5 : ResidentsA       SSID 6 : ResidentsB       SSID 7 :       SSID 8 : XFINITY       SSID 9 : A440              "FOR /D %%S IN ..." then scans sample.txt for specific names to make       result.txt.       --PROBLEM: If a line has nothing after "SSID nn :" then my batch exits.              The sequence of numbers must be complete and I have tried many ways but       failed to replace any random line without an "SSID nn :" entry with       "SSID nn : None".              Any suggestions?              --- 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