Jump to content

Need a batch script to run through each line of a text document..


Recommended Posts

Posted (edited)

I've got 6 text documents, each one has been generated by doing dir /B > output.txt listing just the folder names

 

I need to use these by doing \\server\share\*folder name from text document*\filename.txt so i want to take the folder name from that text document and insert it into a UNC path by script, then run a command against that generated path.

 

Suggestions on best way of achieving this?

 

EDIT: SCRATCH THAT, I'm an idiot and should have googled first, surprisingly simple.

Edited by mrbios

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...