title: bat file to read one line at a time and execute a command and then move to next line
body: <p>im writing a bat file and i need it to read from a txt file one line at a time and execute a command each time and then move to the next line and execute that same command again. So basically I will have a text file with 30 ip addresses in it, then i want the bat to read the first one, execute the command on it, write the output to a seperate txt file and then move to line 2, execute the command and then write the output to a txt file, then line 3 and so forth, could anyone help me with this? I dont mind if you want me to use vbscript but then please explain clearly as i dont understand vbscript very well :(</p>
  
  <p>Please I'm desperate I'm intergrating it with another tool in order to run an audit i'm doing and I need help</p>