Zaidy036
2024-01-08 02:44:44 UTC
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?
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?