|Where in the code using NET USE would this go?|
It doesn't. If you're not using a different user account for the connection, there's no need.
if I need to do this for a lot of servers, with their names/directory paths in a text file, how would I do the loop?
See, that's moving the goalposts. The loop would depend on the text file, and how its data's organized.
How To Ask Questions The Smart Way