title: Access lines from a text file on a network
body: <p>I need to create a batch file that reads computer names and saves in a text file on a network location. I have tested the loop below and it works locally by changing the location to read my desktop.</p>
  
  <p>Putting the .txt file there, and had it echo the contents. Works fine.  When I change the location to a network one, it says the file cannot be found.</p>
  
  <pre><code>for /F "tokens=*" %%A in (\\lanlocation.com\filepath\filex\IT\"IT Scripts"\Deployment\computer.txt) do pushd \\%%A\c$
  pause
  </code></pre>
  
  <p>I've run into issues before with a space in the network path name causing issues, but I don't believe that's the case here as the error reads off the entire correct path before saying "file cannot be found".  Lastly...yes. The file is there and I'm referencing the right name. </p>
  
  <p>Also, if anyone has a good resource for some batch information, I'd be very appreciative if you would share a link or name of a book. </p>
  
  <p>Thanks!</p>