I am trying to make a bat file that will list all the computers turned on in my building. They are all part of the same domain. I can create the list but I am also trying to format the list so that only the computer names show up, one name on each line with no spaces. I used the command "net view" to list all the computers turned on, on the domain. Then I use the find command to list only the computers I am looking for. Then I need to remove all the "\\" and all the white spaces. Can you help me with this? Im using windows 7 computers.
net view > x.txt
find /I "CRL" x.txt > z.txt