I find this post; and it 's really what i need !!
I have a .txt where a vbs delete 2 random lines .
This is a file in which 2 known administrator account names are cleared so as to only keep those that are unauthorized and unknown.

Example:
-After filling in c:\Admins.txt :
Admaster
Administrateur
Administratec
Administrator
Administratsrv

-After wiping:
Admaster

Administratec

Administratsrv

I want find this more or less 3 lines and take this in one line with ";" to separe string.
in batch there is : findstr /v "^$" "c:\Admins.txt" > c:\toto.txt


Edited by Crayven (2016-12-28 02:49 PM)
_________________________
It is at the foot of the wall that one sees best the wall